xpipe: introduce (saves ~170 bytes)

udhcp/signalpipe.c: use pipe instead of socketpair.
This commit is contained in:
Denis Vlasenko
2007-05-26 16:44:20 +00:00
parent 6239b1f50a
commit 5a6aeddfa7
9 changed files with 35 additions and 36 deletions

View File

@ -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];