summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-01 23:20:37 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-01 23:20:37 +0000
commit2f813ef75d7d1cfb32d78923ae6963be7266de55 (patch)
treefed2d2ac2f0b98903eea186a19f2444a8ee99452 /cmd-run-shell.c
parent32299e401039e9c88e430516e9d85d59d551b859 (diff)
Add a flag for jobs that shouldn't be freed after they've died and use it for
status jobs, then only kill those jobs when status-left, status-right or set-titles-string is changed. Fixes problems with changing options from inside #().
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index ca414dc8..1a8e28f4 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -65,7 +65,7 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_ctx *ctx)
if (ctx->curclient != NULL)
ctx->curclient->references++;
- job = job_add(NULL, NULL,
+ job = job_add(NULL, 0, NULL,
data->arg, cmd_run_shell_callback, cmd_run_shell_free, cdata);
job_run(job);
@@ -117,8 +117,6 @@ cmd_run_shell_callback(struct job *job)
ctx->info(ctx, "%s", msg);
xfree(msg);
}
-
- job_free(job); /* calls cmd_run_shell_free */
}
void