diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-12 00:25:25 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-12 00:25:25 +0000 |
commit | 197f8b88bffb5febe691f2442650574f40fe7322 (patch) | |
tree | 289cefa2fb7cd539d9d947381e2f21340364b02a /job.c | |
parent | c8d0608369971b7f80d89961fed4ae3d80eb449b (diff) | |
download | rtmux-197f8b88bffb5febe691f2442650574f40fe7322.tar.gz rtmux-197f8b88bffb5febe691f2442650574f40fe7322.tar.bz2 rtmux-197f8b88bffb5febe691f2442650574f40fe7322.zip |
Sync OpenBSD patchset 384:
Switch run-shell over to queue the command in the background like #().
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: job.c,v 1.5 2009-10-12 00:22:17 tcunha Exp $ */ +/* $Id: job.c,v 1.6 2009-10-12 00:25:25 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -69,7 +69,6 @@ job_tree_free(struct jobs *jobs) while (!RB_EMPTY(jobs)) { job = RB_ROOT(jobs); RB_REMOVE(jobs, jobs, job); - SLIST_REMOVE(&all_jobs, job, job, lentry); job_free(job); } } @@ -119,6 +118,7 @@ job_free(struct job *job) { job_kill(job); + SLIST_REMOVE(&all_jobs, job, job, lentry); xfree(job->cmd); if (job->freefn != NULL && job->data != NULL) |