diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-01 23:20:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-01 23:20:37 +0000 |
commit | 2f813ef75d7d1cfb32d78923ae6963be7266de55 (patch) | |
tree | fed2d2ac2f0b98903eea186a19f2444a8ee99452 /status.c | |
parent | 32299e401039e9c88e430516e9d85d59d551b859 (diff) | |
download | rtmux-2f813ef75d7d1cfb32d78923ae6963be7266de55.tar.gz rtmux-2f813ef75d7d1cfb32d78923ae6963be7266de55.tar.bz2 rtmux-2f813ef75d7d1cfb32d78923ae6963be7266de55.zip |
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 'status.c')
-rw-r--r-- | status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -476,8 +476,8 @@ status_job(struct client *c, char **iptr) job = job_get(&c->status_jobs, cmd); if (job == NULL) { - job = job_add( - &c->status_jobs, c, cmd, status_job_callback, xfree, NULL); + job = job_add(&c->status_jobs, + JOB_PERSIST, c, cmd, status_job_callback, xfree, NULL); job_run(job); } if (job->data == NULL) |