diff options
author | Omar Polo <op@omarpolo.com> | 2021-07-08 10:09:24 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-07-08 10:09:24 +0000 |
commit | 2e2e189b016fe981fcb32e2c461a7c385cb25942 (patch) | |
tree | 2e517b9c125d611b68d7ec6e7cc1f91f3a2b5ba6 /ex.c | |
parent | e7c6502bf3ebe199349e315ac7f112db6a2db38e (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()) { |