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:
parent
19e0d449eb
commit
87e0952773
1 changed files with 2 additions and 2 deletions
|
@ -854,8 +854,8 @@ static int cmd_start(int argc, char *argv[]) {
|
||||||
return status;
|
return status;
|
||||||
#else
|
#else
|
||||||
int pfd[2] = {-1, -1};
|
int pfd[2] = {-1, -1};
|
||||||
if(pipe(pfd)) {
|
if(socketpair(AF_UNIX, SOCK_STREAM, 0, pfd)) {
|
||||||
fprintf(stderr, "Could not create umbilical pipe: %s\n", strerror(errno));
|
fprintf(stderr, "Could not create umbilical socket: %s\n", strerror(errno));
|
||||||
free(nargv);
|
free(nargv);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue