[memprof: 22/76] server.c: Store retval of write somewhere



commit 8d6f6c2dcddcaa0e9ae9d28a56a9ee741c27d3ed
Author: Holger Hans Peter Freyther <zecke selfish org>
Date:   Thu Jun 4 13:15:25 2009 +0200

    server.c: Store retval of write somewhere

 src/server.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/server.c b/src/server.c
index b6aa24c..7d374c7 100644
--- a/src/server.c
+++ b/src/server.c
@@ -327,13 +327,14 @@ term_handler (int signum)
 {
 	static int terminated = 0;
 	char c = signum;
+	int ret;
 
 	if (terminated)
 		exit(1);	/* Impatient user, risk reentrancy problems  */
 	
 	terminated = 1;
 
-	write (terminate_pipe[1], &c, 1);
+	ret = write (terminate_pipe[1], &c, 1);
 }
 
 static gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]