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

@ -103,7 +103,7 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_q *cmdq)
cdata->cmdq = cmdq;
cmdq->references++;
job_run(shellcmd, cmd_run_shell_callback, cmd_run_shell_free, cdata);
job_run(shellcmd, s, cmd_run_shell_callback, cmd_run_shell_free, cdata);
if (cdata->bflag)
return (CMD_RETURN_NORMAL);