From 053e40572c32d021ad8bd2922c97c5e6dcbe2c81 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Mon, 2 Nov 2009 21:38:27 +0000 Subject: 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 #(). --- status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'status.c') diff --git a/status.c b/status.c index 909e2946..08ca4c2c 100644 --- a/status.c +++ b/status.c @@ -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 @@ -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) -- cgit