vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit 74c7277ddba521a8bb4de9b5953aeb7b08c3266f
parent 95d4dd22fc11be9a424fd5d97c2835644b34ad6a
Author: Russ Cox <rsc@swtch.com>
Date:   Sun, 17 May 2009 10:23:19 -0700

9vx: ignore SIGPIPE for hung-up network connections (Tim Newsham)

Diffstat:
src/9vx/devip-posix.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/9vx/devip-posix.c b/src/9vx/devip-posix.c @@ -4,6 +4,7 @@ #include <netinet/in.h> #include <netinet/tcp.h> #include <netdb.h> +#include <signal.h> #include "lib.h" #include "mem.h" #include "dat.h" @@ -19,6 +20,8 @@ void osipinit(void) { char buf[1024]; + + signal(SIGPIPE, SIG_IGN); gethostname(buf, sizeof(buf)); kstrdup(&sysname, buf); }