summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-if-shell.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-03-08 08:09:10 +0000
committernicm <nicm@openbsd.org>2018-03-08 08:09:10 +0000
commit49505a585a1f33133f638cc437963becee77e333 (patch)
tree023e8600ea7e2b5e3101ff04bfdf1d73c122a236 /usr.bin/tmux/cmd-if-shell.c
parentImplement the VMWare vmbackup protocol using vfs_stall(). This lets you (diff)
downloadwireguard-openbsd-49505a585a1f33133f638cc437963becee77e333.tar.xz
wireguard-openbsd-49505a585a1f33133f638cc437963becee77e333.zip
Add a missing client-detached hook when the server shuts down, and do
not exit until jobs started from run-shell/if-shell have finished (add a job flags member and a flag to indicate other jobs). GitHub issue 1245.
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
-rw-r--r--usr.bin/tmux/cmd-if-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c
index 1ec6c25a522..6740546601f 100644
--- a/usr.bin/tmux/cmd-if-shell.c
+++ b/usr.bin/tmux/cmd-if-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-if-shell.c,v 1.56 2017/04/25 11:49:35 nicm Exp $ */
+/* $OpenBSD: cmd-if-shell.c,v 1.57 2018/03/08 08:09:10 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -129,7 +129,7 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)
memcpy(&cdata->mouse, &shared->mouse, sizeof cdata->mouse);
job_run(shellcmd, s, cwd, NULL, cmd_if_shell_callback,
- cmd_if_shell_free, cdata);
+ cmd_if_shell_free, cdata, 0);
free(shellcmd);
if (args_has(args, 'b'))