SCCS-vsn: usr.bin/window/wwenviron.c 3.12
-static char sccsid[] = "@(#)wwenviron.c 3.11 %G%";
+static char sccsid[] = "@(#)wwenviron.c 3.12 %G%";
/*
* Set up the environment of this process to run in window 'wp'.
/*
* Set up the environment of this process to run in window '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 : "",