aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-26 16:44:20 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-26 16:44:20 +0000
commit5a6aeddfa7262e41802c77f70c9ef88e9c2c2476 (patch)
tree36bf70fe7e6c67e4ab37c446a191272eb90097ed /shell/lash.c
parent6239b1f50a04121d96daba2cdc2f7c3765c9007b (diff)
downloadbusybox-w32-5a6aeddfa7262e41802c77f70c9ef88e9c2c2476.tar.gz
busybox-w32-5a6aeddfa7262e41802c77f70c9ef88e9c2c2476.tar.bz2
busybox-w32-5a6aeddfa7262e41802c77f70c9ef88e9c2c2476.zip
xpipe: introduce (saves ~170 bytes)
udhcp/signalpipe.c: use pipe instead of socketpair.
Diffstat (limited to '')
-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];