aboutsummaryrefslogtreecommitdiff
path: root/ex.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-08 10:09:24 +0000
committerOmar Polo <op@omarpolo.com>2021-07-08 10:09:24 +0000
commit2e2e189b016fe981fcb32e2c461a7c385cb25942 (patch)
tree2e517b9c125d611b68d7ec6e7cc1f91f3a2b5ba6 /ex.c
parente7c6502bf3ebe199349e315ac7f112db6a2db38e (diff)
PF_UNIX is not a valid protocol for socketpair
OpenBSD accept it, but FreeBSD disallows it. PF_UNSPEC (or 0) should be used instead. The FastCGI bit in the regress suite still doesn't work on FreeBSD, but at least now it starts.
Diffstat (limited to 'ex.c')
-rw-r--r--ex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ex.c b/ex.c
index cad8d9a..102d5a2 100644
--- a/ex.c
+++ b/ex.c
@@ -319,7 +319,7 @@ fcgi_open_prog(struct fcgi *f)
/* XXX! */
- if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNIX, s) == -1)
+ if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, s) == -1)
err(1, "socketpair");
switch (p = fork()) {