mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
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.
This commit is contained in:
4
job.c
4
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);
|
||||
|
||||
|
Reference in New Issue
Block a user