summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-08-29 14:42:11 +0000
committerTiago Cunha <tcunha@gmx.com>2010-08-29 14:42:11 +0000
commit56040be3468e655256362c7d5b230b15236b9dd2 (patch)
treeac7667f2e41cc6d09c01dc58d084e715e3f3dd77 /job.c
parente6bb3d69422d948373b10074b043a8ef0189b1de (diff)
Sync OpenBSD patchset 751:
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/job.c b/job.c
index ff725010..63856a16 100644
--- a/job.c
+++ b/job.c
@@ -1,4 +1,4 @@
-/* $Id: job.c,v 1.17 2010-05-14 14:30:01 tcunha Exp $ */
+/* $Id: job.c,v 1.18 2010-08-29 14:42:11 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -148,7 +148,7 @@ job_run(struct job *job)
case -1:
return (-1);
case 0: /* child */
- clear_signals();
+ clear_signals(1);
environ_push(&global_environ);