diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-05-03 16:06:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-05-03 16:06:33 +0000 |
commit | 72a6f023642c24ed068b6564472df9d7ccec30cf (patch) | |
tree | 3dd1b2f8b660cfe7c21ab37745c45e4aceb91e44 /usr.bin/tmux/job.c | |
parent | b216f11b658d51a71040b8ed7718b8f019686022 (diff) |
Make signal handler setup/teardown two common functions instead of six,
and reset SIGCHLD after fork to fix problems with some shells. From
Romain Francois.
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 fd2174e07f7..c37acc7478e 100644 --- a/usr.bin/tmux/job.c +++ b/usr.bin/tmux/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.16 2010/04/04 19:02:09 nicm Exp $ */ +/* $OpenBSD: job.c,v 1.17 2010/05/03 16:06:32 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 */ - server_signal_clear(); + clear_signals(); environ_push(&global_environ); |