aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 800b0f970..2e6f286dc 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1800,8 +1800,7 @@ static int run_pipe_real(struct pipe *pi)
1800 1800
1801 /* pipes are inserted between pairs of commands */ 1801 /* pipes are inserted between pairs of commands */
1802 if ((i + 1) < pi->num_progs) { 1802 if ((i + 1) < pi->num_progs) {
1803 if (pipe(pipefds) < 0) 1803 pipe(pipefds);
1804 bb_perror_msg_and_die("pipe");
1805 nextout = pipefds[1]; 1804 nextout = pipefds[1];
1806 } else { 1805 } else {
1807 nextout = 1; 1806 nextout = 1;
@@ -3134,8 +3133,7 @@ static FILE *generate_stream_from_list(struct pipe *head)
3134 FILE *pf; 3133 FILE *pf;
3135 int pid, channel[2]; 3134 int pid, channel[2];
3136 3135
3137 if (pipe(channel) < 0) 3136 xpipe(channel);
3138 bb_perror_msg_and_die("pipe");
3139#if BB_MMU 3137#if BB_MMU
3140 pid = fork(); 3138 pid = fork();
3141#else 3139#else