Commit Diff


commit - 58cdb97ce8d303a379c3c164bdfa61cb1524600f
commit + 8def94257de0c243b087788186b73585ffc24f25
blob - dd100773cb3593bb4f04e31d024acf711bdc912e
blob + a16821af966e854627051ef7d1ddb100a024c3d1
--- 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);