Use socketpair() instead of pipe() for the umbilical.

This prepares for a possible conversion of the umbilical socket to a
control socket.
This commit is contained in:
Guus Sliepen 2015-05-20 21:28:54 +02:00
parent 19e0d449eb
commit 87e0952773

View file

@ -854,8 +854,8 @@ static int cmd_start(int argc, char *argv[]) {
return status;
#else
int pfd[2] = {-1, -1};
if(pipe(pfd)) {
fprintf(stderr, "Could not create umbilical pipe: %s\n", strerror(errno));
if(socketpair(AF_UNIX, SOCK_STREAM, 0, pfd)) {
fprintf(stderr, "Could not create umbilical socket: %s\n", strerror(errno));
free(nargv);
return 1;
}