set SIGPIPE back before exec
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Sun, 3 Jun 1984 08:41:41 +0000 (00:41 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Sun, 3 Jun 1984 08:41:41 +0000 (00:41 -0800)
SCCS-vsn: usr.bin/window/wwenviron.c 3.12

usr/src/usr.bin/window/wwenviron.c

index b5355d0..8574682 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)wwenviron.c        3.11 %G%";
+static char sccsid[] = "@(#)wwenviron.c        3.12 %G%";
 #endif
 
 #include "ww.h"
 #endif
 
 #include "ww.h"
+#include <sys/signal.h>
 
 /*
  * Set up the environment of this process to run in window 'wp'.
 
 /*
  * Set up the environment of this process to run in window 'wp'.
@@ -27,7 +28,7 @@ register struct ww *wp;
                (void) close(i);
        (void) ioctl(0, (int)TIOCSPGRP, (char *)&pgrp);
        (void) setpgrp(pgrp, pgrp);
                (void) close(i);
        (void) ioctl(0, (int)TIOCSPGRP, (char *)&pgrp);
        (void) setpgrp(pgrp, pgrp);
-
+       (void) signal(SIGPIPE, SIG_DFL);
        (void) sprintf(wwwintermcap, "TERMCAP=%sco#%d:li#%d:%s%s%s%s",
                WWT_TERMCAP, wp->ww_w.nc, wp->ww_w.nr,
                wwavailmodes & WWM_REV ? WWT_REV : "",
        (void) sprintf(wwwintermcap, "TERMCAP=%sco#%d:li#%d:%s%s%s%s",
                WWT_TERMCAP, wp->ww_w.nc, wp->ww_w.nr,
                wwavailmodes & WWM_REV ? WWT_REV : "",