Module Name:    src
Committed By:   pooka
Date:           Wed Nov 10 16:12:15 UTC 2010

Modified Files:
        src/lib/librumpuser: sp_common.c

Log Message:
Don't puff sigpipe if the connection has been severed.  May happen
e.g. when a client executes a blocking call such a poll() and
decides to exit before the result is ready.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/librumpuser/sp_common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/sp_common.c
diff -u src/lib/librumpuser/sp_common.c:1.2 src/lib/librumpuser/sp_common.c:1.3
--- src/lib/librumpuser/sp_common.c:1.2	Fri Nov  5 14:23:45 2010
+++ src/lib/librumpuser/sp_common.c	Wed Nov 10 16:12:15 2010
@@ -1,4 +1,4 @@
-/*      $NetBSD: sp_common.c,v 1.2 2010/11/05 14:23:45 pooka Exp $	*/
+/*      $NetBSD: sp_common.c,v 1.3 2010/11/10 16:12:15 pooka Exp $	*/
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -150,7 +150,7 @@
 			}
 		}
 
-		n = write(fd, sdata + sent, dlen - sent);
+		n = send(fd, sdata + sent, dlen - sent, MSG_NOSIGNAL);
 		if (n == 0) {
 			return EFAULT;
 		}

Reply via email to