Commit d674d3f4 authored by Mike Hibler's avatar Mike Hibler

Ignore SIGPIPE in proxy so replies to dead clients don't kill us.

parent 6b6e71f2
......@@ -651,6 +651,9 @@ beproxy(char *localpath, struct in_addr serverip, char *partial)
char command[MYBUFSIZE], buf[MYBUFSIZE];
char *bp, *cp;
/* don't let a client kill us */
signal(SIGPIPE, SIG_IGN);
sock = socket(AF_UNIX, SOCK_STREAM, 0);
if (sock < 0) {
perror("creating unix domain socket");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment