From cebc988dd4b8372b84747a132d0e2babaa84e988 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 11 Oct 2009 08:58:05 +0000 Subject: Switch run-shell over to queue the command in the background like #(). --- job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'job.c') diff --git a/job.c b/job.c index 15155bb3..6a824fa6 100644 --- a/job.c +++ b/job.c @@ -70,7 +70,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); } } @@ -120,6 +119,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) -- cgit