Commit Diff


commit - 25ebe4706865b1d548e3acb329275fd001378a30
commit + f422fd17f5e761577489af8e09480ed6cd2f61bf
blob - 8a3acf39855f8b061b54268d68d4bd0978010edb
blob + 955f6f78dbc1dfa3ebee40db102caa324f8bb4b1
--- gotwebd/sockets.c
+++ gotwebd/sockets.c
@@ -105,6 +105,8 @@ sockets(struct gotwebd *env, int fd)
 	event_set(&env->iev_parent->ev, fd, EV_READ, sockets_dispatch_main,
 	    env->iev_parent);
 	event_add(&env->iev_parent->ev, NULL);
+
+	signal(SIGPIPE, SIG_IGN);
 
 	signal_set(&sighup, SIGCHLD, sockets_sighdlr, env);
 	signal_add(&sighup, NULL);