summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2018-03-08 08:09:10 +0000
committernicm <nicm>2018-03-08 08:09:10 +0000
commit19f3a5c6120c5d845eb942e67413c03c0c008a87 (patch)
treefbd4fb03833b499bfa23d77394ba5b6365e00a01 /cmd-if-shell.c
parent85c48aafffd4e520eea2e598ea199e7b16f787cc (diff)
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 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index 2400b3b4..304fe910 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -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'))