projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use socketpair() instead of pipe() for the umbilical.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
c6d4aac
..
bbc5c02
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-854,8
+854,8
@@
static int cmd_start(int argc, char *argv[]) {
return status;
#else
int pfd[2] = {-1, -1};
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;
}
free(nargv);
return 1;
}