diff options
author | Richard Basch <probe@mit.edu> | 1994-03-15 07:15:36 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1994-03-15 07:15:36 +0000 |
commit | 65136e4588d052d36fb3c12844342508195525ed (patch) | |
tree | 29b7cdfaec1ff1c030834c2880ef6681a6543f1a /zwgc | |
parent | 9b85e6ae38ae318dc398f3283ae8eb9660e2433f (diff) |
Ignore SIGTTOU when forking, otherwise we might hang.
Increase the version number.
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zwgc/main.c b/zwgc/main.c index c400ac3..4d0fb49 100644 --- a/zwgc/main.c +++ b/zwgc/main.c @@ -46,7 +46,7 @@ static void setup_signals(), detach(); int zwgc_debug = 0; #endif -static char *zwgc_version_string = "0.4.6"; +static char *zwgc_version_string = "0.4.7"; /* * description_filename_override - <<<>>> @@ -386,6 +386,7 @@ static void setup_signals(dofork) sa.sa_handler = SIG_IGN; sigaction(SIGINT, &sa, (struct sigaction *)0); sigaction(SIGTSTP, &sa, (struct sigaction *)0); + sigaction(SIGTTOU, &sa, (struct sigaction *)0); sigaction(SIGQUIT, &sa, (struct sigaction *)0); } else { /* clean up on SIGINT; exiting on logout is the user's problem, now. */ @@ -408,6 +409,7 @@ static void setup_signals(dofork) /* Ignore keyboard signals if forking. Bad things will happen. */ signal(SIGINT, SIG_IGN); signal(SIGTSTP, SIG_IGN); + signal(SIGTTOU, SIG_IGN); signal(SIGQUIT, SIG_IGN); } else { /* clean up on SIGINT; exiting on logout is the user's problem, now. */ @@ -444,4 +446,3 @@ static void detach() exit(0); } } - |