~vorlon/ubuntu/raring/upstart/lp.1199778

« back to all changes in this revision

Viewing changes to init/job_process.c

* init/job_process.c (job_process_run): Correct shell redirection;
the form we used dosen't work with at least pdksh

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
                 * a path. Instruct the shell to close this extra fd and
322
322
                 * not to leak it.
323
323
                 */
324
 
                NIH_ZERO (nih_io_printf (io, "exec <&%d-\n", fds[0]));
 
324
                NIH_ZERO (nih_io_printf (io, "exec %d<&-\n", fds[0]));
325
325
 
326
326
                NIH_ZERO (nih_io_write (io, script, strlen (script)));
327
327
                nih_io_shutdown (io);