diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-08-19 18:29:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-08-19 18:29:01 +0000 |
commit | e3be9b1951856f84d30c2903eccdf792618f71ba (patch) | |
tree | 0677a0ea970e8aae8cbafe36e4721069351dd0c4 /tmux.c | |
parent | c2822ca119d9270f9193eaa574d9b157772b77ed (diff) | |
download | rtmux-e3be9b1951856f84d30c2903eccdf792618f71ba.tar.gz rtmux-e3be9b1951856f84d30c2903eccdf792618f71ba.tar.bz2 rtmux-e3be9b1951856f84d30c2903eccdf792618f71ba.zip |
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 'tmux.c')
-rw-r--r-- | tmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -549,7 +549,7 @@ main(int argc, char **argv) event_dispatch(); - clear_signals(); + clear_signals(0); client_main(); /* doesn't return */ } @@ -636,7 +636,7 @@ main_dispatch(const char *shellcmd) memcpy(&shelldata, imsg.data, sizeof shelldata); shelldata.shell[(sizeof shelldata.shell) - 1] = '\0'; - clear_signals(); + clear_signals(0); shell_exec(shelldata.shell, shellcmd); default: |