aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 24e48c337..28449b791 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1222,8 +1222,7 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2])
1222 1222
1223 nextout = 1; 1223 nextout = 1;
1224 if ((i + 1) < newjob->num_progs) { 1224 if ((i + 1) < newjob->num_progs) {
1225 if (pipe(pipefds) < 0) 1225 xpipe(pipefds);
1226 bb_perror_msg_and_die("pipe");
1227 nextout = pipefds[1]; 1226 nextout = pipefds[1];
1228 } else if (outpipe[1] != -1) { 1227 } else if (outpipe[1] != -1) {
1229 nextout = outpipe[1]; 1228 nextout = outpipe[1];