diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-26 20:44:20 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-26 20:44:20 +0400 |
commit | 5a6aeddfa7262e41802c77f70c9ef88e9c2c2476 (patch) | |
tree | 36bf70fe7e6c67e4ab37c446a191272eb90097ed /shell/lash.c | |
parent | 6239b1f50a04121d96daba2cdc2f7c3765c9007b (diff) |
xpipe: introduce (saves ~170 bytes)
udhcp/signalpipe.c: use pipe instead of socketpair.
Diffstat (limited to 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 3 |
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]) nextout = 1; if ((i + 1) < newjob->num_progs) { - if (pipe(pipefds) < 0) - bb_perror_msg_and_die("pipe"); + xpipe(pipefds); nextout = pipefds[1]; } else if (outpipe[1] != -1) { nextout = outpipe[1]; |