diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-11 08:58:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-11 08:58:06 +0000 |
commit | e62b19ee0907bea11ce5312c754300df9c61079d (patch) | |
tree | bcfb5460d596e579477946a38eee38ccfeced183 /usr.bin/tmux/job.c | |
parent | f8cf00a07d924702c9a159732d7e76711d4e2522 (diff) |
Switch run-shell over to queue the command in the background like #().
Diffstat (limited to 'usr.bin/tmux/job.c')
-rw-r--r-- | usr.bin/tmux/job.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/job.c b/usr.bin/tmux/job.c index 2e94e3b2961..130d6fa2b70 100644 --- a/usr.bin/tmux/job.c +++ b/usr.bin/tmux/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.4 2009/10/11 07:30:07 nicm Exp $ */ +/* $OpenBSD: job.c,v 1.5 2009/10/11 08:58:05 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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) |