diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-02 21:38:27 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-02 21:38:27 +0000 |
commit | 053e40572c32d021ad8bd2922c97c5e6dcbe2c81 (patch) | |
tree | 90363ff5fecbb52e5f6ee2af5a47af93765c974d /status.c | |
parent | 47f69075a0d9abf031585eb86bea1646a3bf32eb (diff) | |
download | rtmux-053e40572c32d021ad8bd2922c97c5e6dcbe2c81.tar.gz rtmux-053e40572c32d021ad8bd2922c97c5e6dcbe2c81.tar.bz2 rtmux-053e40572c32d021ad8bd2922c97c5e6dcbe2c81.zip |
Sync OpenBSD patchset 475:
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 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.123 2009-10-11 23:55:26 tcunha Exp $ */ +/* $Id: status.c,v 1.124 2009-11-02 21:38:26 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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) |