diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-08-19 18:29:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-08-19 18:29:02 +0000 |
commit | 42e8573202cb07e421faa5868d0b14d286d51eda (patch) | |
tree | 427c80a9e014e2d822cfc47b6a4be868e9b3ec21 /usr.bin/tmux/job.c | |
parent | c18462087a5620f613f1e8e0f355ab8aaa083efb (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 'usr.bin/tmux/job.c')
-rw-r--r-- | usr.bin/tmux/job.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/job.c b/usr.bin/tmux/job.c index d076453eddb..e540e41d367 100644 --- a/usr.bin/tmux/job.c +++ b/usr.bin/tmux/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.19 2010/05/04 17:28:16 nicm Exp $ */ +/* $OpenBSD: job.c,v 1.20 2010/08/19 18:29:01 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); |