Call closefrom after removing signals because newer libevent doesn't

like its signal fd being closed Azat Khuzhin.
pull/3626/head
nicm 2023-07-09 22:54:52 +00:00
parent 43b841f188
commit b7e22d00b4
1 changed files with 1 additions and 1 deletions

View File

@ -415,8 +415,8 @@ spawn_pane(struct spawn_context *sc, char **cause)
_exit(1);
/* Clean up file descriptors and signals and update the environment. */
closefrom(STDERR_FILENO + 1);
proc_clear_signals(server_proc, 1);
closefrom(STDERR_FILENO + 1);
sigprocmask(SIG_SETMASK, &oldset, NULL);
log_close();
environ_push(child);