SCCS-vsn: bin/csh/csh.c 4.9
-static char *sccsid = "@(#)csh.c 4.8 %G%";
+static char *sccsid = "@(#)csh.c 4.9 %G%";
#include "sh.h"
#include <sys/ioctl.h>
#include "sh.h"
#include <sys/ioctl.h>
* Note that in only the login shell is it likely that parent
* may have set signals to be ignored
*/
* Note that in only the login shell is it likely that parent
* may have set signals to be ignored
*/
- if (loginsh || intact || intty && isatty(SHOUT) || parintr == SIG_DFL)
+ if (loginsh || intact || intty && isatty(SHOUT))
setintr = 1;
#ifdef TELL
settell();
setintr = 1;
#ifdef TELL
settell();
+ if (setintr == 0 && parintr == SIG_DFL)
+ setintr++;
sigset(SIGCHLD, pchild); /* while signals not ready */
/*
sigset(SIGCHLD, pchild); /* while signals not ready */
/*