xpipe: introduce (saves ~170 bytes)
udhcp/signalpipe.c: use pipe instead of socketpair.
This commit is contained in:
@@ -184,7 +184,7 @@ static int setup_log(void)
|
||||
warnx("log must have at least seven characters");
|
||||
return 0;
|
||||
}
|
||||
if (pipe(logpipe) == -1) {
|
||||
if (pipe(logpipe)) {
|
||||
warnx("cannot create pipe for log");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user