mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Merge branch 'obsd-master'
This commit is contained in:
4
client.c
4
client.c
@ -366,7 +366,6 @@ client_main(struct event_base *base, int argc, char **argv, int flags)
|
||||
if (client_exittype == MSG_EXEC) {
|
||||
if (client_flags & CLIENT_CONTROLCONTROL)
|
||||
tcsetattr(STDOUT_FILENO, TCSAFLUSH, &saved_tio);
|
||||
proc_clear_signals(client_proc);
|
||||
client_exec(client_execshell, client_execcmd);
|
||||
}
|
||||
|
||||
@ -482,6 +481,8 @@ client_exec(const char *shell, const char *shellcmd)
|
||||
xasprintf(&argv0, "%s", name);
|
||||
setenv("SHELL", shell, 1);
|
||||
|
||||
proc_clear_signals(client_proc, 1);
|
||||
|
||||
setblocking(STDIN_FILENO, 1);
|
||||
setblocking(STDOUT_FILENO, 1);
|
||||
setblocking(STDERR_FILENO, 1);
|
||||
@ -629,7 +630,6 @@ client_dispatch_wait(struct imsg *imsg)
|
||||
if (datalen == 0 || data[datalen - 1] != '\0')
|
||||
fatalx("bad MSG_SHELL string");
|
||||
|
||||
proc_clear_signals(client_proc);
|
||||
client_exec(data, shell_command);
|
||||
/* NOTREACHED */
|
||||
case MSG_DETACH:
|
||||
|
Reference in New Issue
Block a user