--- rxvt-unicode/src/rxvtc.C 2006/08/09 22:01:07 1.26 +++ rxvt-unicode/src/rxvtc.C 2007/10/31 09:55:24 1.28 @@ -47,13 +47,13 @@ { sockaddr_un sa; char *sockname = rxvt_connection::unix_sockname (); - + if (strlen(sockname) >= sizeof(sa.sun_path)) { fputs ("socket name too long, aborting.\n", stderr); exit (STATUS_FAILURE); } - + if ((fd = socket (AF_UNIX, SOCK_STREAM, 0)) < 0) { perror ("unable to create communications socket"); @@ -82,6 +82,7 @@ sigemptyset (&ss); sigaddset (&ss, SIGHUP); + sigaddset (&ss, SIGPIPE); sigprocmask (SIG_BLOCK, &ss, 0); }