[memprof: 15/76] process.c: Store the return of write...
- From: Holger Hans Peter Freyther <hfreyther src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [memprof: 15/76] process.c: Store the return of write...
- Date: Sun, 13 Jun 2010 03:39:29 +0000 (UTC)
commit 3908d011cd30b9573b11d31c4d4d8e43c1d72740
Author: Holger Hans Peter Freyther <zecke selfish org>
Date: Thu Jun 4 13:07:08 2009 +0200
process.c: Store the return of write...
src/process.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/process.c b/src/process.c
index 6d232fd..78aee26 100644
--- a/src/process.c
+++ b/src/process.c
@@ -889,12 +889,14 @@ process_get_cmdline (MPProcess *process)
void
process_detach (MPProcess *process)
{
+ int ret;
+
if (process->status != MP_PROCESS_DEFUNCT) {
int fd = g_io_channel_unix_get_fd (process->input_channel);
if (process->status == MP_PROCESS_EXITING) {
char response = 0;
- write (fd, &response, 1);
+ ret = write (fd, &response, 1);
} else {
g_io_channel_shutdown (process->input_channel, TRUE, NULL);
process_set_status (process, MP_PROCESS_DETACHED);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]