Extend jobs to support writing and use that for copy-pipe instead of popen,

from Chris Johnsen.
This commit is contained in:
Nicholas Marriott
2013-03-21 14:24:33 +00:00
parent 69d97f6d4b
commit 6ddb06d372
6 changed files with 43 additions and 26 deletions

View File

@@ -594,7 +594,7 @@ status_find_job(struct client *c, char **iptr)
/* If not found at all, start the job and add to the tree. */
if (so == NULL) {
job_run(cmd, status_job_callback, status_job_free, c);
job_run(cmd, NULL, status_job_callback, status_job_free, c);
c->references++;
so = xmalloc(sizeof *so);