From 19f3a5c6120c5d845eb942e67413c03c0c008a87 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 8 Mar 2018 08:09:10 +0000 Subject: 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. --- cmd-if-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-if-shell.c') 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')) -- cgit v1.2.3