From 7f36d1532e29a29305971bd7c19fd803d9603a04 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 24 Dec 2014 13:25:33 +0100 Subject: client API: document requirement to block SIGPIPE I noticed that the IPC code does not use MSG_NOSIGNAL or SO_NOSIGPIPE. The former is "only" POSIX 2008 and also requires switching to sendto(), while the latter is even less portable. Not going to bother with this obsolete 80ies crap, just block SIGPIPE, and instruct client API users to do the same. --- osdep/terminal-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osdep') diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index 85908c551a..bc0dc8336b 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -488,7 +488,7 @@ int terminal_init(void) setsigaction(SIGTTIN, SIG_IGN, 0, true); setsigaction(SIGTTOU, SIG_IGN, 0, true); - // don't crash on SIGPIPE caused by semi-broken libraries + // get sane behavior, instead of hysteric UNIX-nonsense setsigaction(SIGPIPE, SIG_IGN, 0, true); getch2_poll(); -- cgit v1.2.3