fix shell redirection
* init/job_process.c (job_process_run): Always make the shell script
fd 9, since that's the highest that shells are required by POSIX to
support. Pass the file descriptor to job_process_spawn()
(job_process_run): Accept the extra file descriptor, moving it to fd 9.
(job_process_error_read): Add handling for error condition.
* init/job_process.h: Adjust prototypes, add constant
* init/tests/test_job_process.c (test_spawn): Add argument to call in
tests
BUG=chromium-os:16302
TEST=booted
(cherry picked from commit af03cb26ac8011b52d836230b3ed40aa28843613)
Reviewed-on: https://chromium-review.googlesource.com/2299
Change-Id: I035c9a82490cc2d1bf8e993894cbc2d249bdff90
3 files changed