From 56040be3468e655256362c7d5b230b15236b9dd2 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sun, 29 Aug 2010 14:42:11 +0000 Subject: 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. --- job.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'job.c') 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 @@ -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); -- cgit