summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2023-07-09 22:54:52 +0000
committernicm <nicm>2023-07-09 22:54:52 +0000
commitb7e22d00b4530ecf6b86884c0f27cbad38a6345c (patch)
treeba3290ce9c4731fc5e6817fdc5ee61b1fef01de2
parent43b841f188c994966e00e59c96581b876652bef1 (diff)
Call closefrom after removing signals because newer libevent doesn't
like its signal fd being closed Azat Khuzhin.
-rw-r--r--spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spawn.c b/spawn.c
index 98c9ba52..dd3f6f50 100644
--- a/spawn.c
+++ b/spawn.c
@@ -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);