diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-10-11 08:58:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-10-11 08:58:05 +0000 |
commit | cebc988dd4b8372b84747a132d0e2babaa84e988 (patch) | |
tree | 515132486b20a79f9b481e3da7d40fcd205ab83d /job.c | |
parent | abedfa77daf3b8a815b134e3650bece0bb646631 (diff) |
Switch run-shell over to queue the command in the background like #().
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |