aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-28 16:18:38 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-28 16:18:38 -0800
commit0f9de11a67a5bbf3fe0c3be7f55cb25a7987ed4d (patch)
tree40c6c53ac7b94969823ecb73c145862f9d617723 /exec.cpp
parent715823a6665a63df5a7ae6e5a9adcbe287626c1c (diff)
Fix issues related to redirections and block level IO with new parser
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/exec.cpp b/exec.cpp
index e7277169..e150723d 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -820,7 +820,6 @@ void exec_job(parser_t &parser, job_t *j)
{
pipe_write.reset(new io_pipe_t(p->pipe_write_fd, false));
process_net_io_chain.push_back(pipe_write);
-
}
/* The explicit IO redirections associated with the process */
@@ -1156,7 +1155,7 @@ void exec_job(parser_t &parser, job_t *j)
No buffer, so we exit directly. This means we
have to manually set the exit status.
*/
- if (p->next == 0)
+ if (p->next == NULL)
{
proc_set_last_status(job_get_flag(j, JOB_NEGATE)?(!status):status);
}