summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-08-19 18:29:01 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-08-19 18:29:01 +0000
commite3be9b1951856f84d30c2903eccdf792618f71ba (patch)
tree0677a0ea970e8aae8cbafe36e4721069351dd0c4 /job.c
parentc2822ca119d9270f9193eaa574d9b157772b77ed (diff)
Do not call event_del() for signals after fork(), just use sigaction()
directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless.
Diffstat (limited to 'job.c')
-rw-r--r--job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/job.c b/job.c
index 61aa61fa..e0dc99ef 100644
--- a/job.c
+++ b/job.c
@@ -149,7 +149,7 @@ job_run(struct job *job)
case -1:
return (-1);
case 0: /* child */
- clear_signals();
+ clear_signals(1);
environ_push(&global_environ);