NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/55690 (GCC9 -pipe not working with PIPE_SOCKETPAIR)



Synopsis: GCC9 -pipe not working with PIPE_SOCKETPAIR

State-Changed-From-To: open->feedback
State-Changed-By: jdolecek%NetBSD.org@localhost
State-Changed-When: Sun, 21 Jan 2024 18:08:29 +0000
State-Changed-Why:
The PIPE_SOCKETPAIR version of pipe1() appears to not pass correctly O_CLOEXEC and O_NONBLOCK.
O_CLOEXEC would just leak descriptors, but O_NONBLOCK might have the effect you are seeing
(processes stuck on netio).
I've prepared patch this fixes this, with this the lang/perl9 build works for me with gcc 9.3.0:
https://www.netbsd.org/~jdolecek/pipe_socketpair_fix.diff.txt

Can you check it out and see if it makes difference on your system too?
The change does also fix the lib/libc/sys/t_pipe2 failure, but does not change anything
for kernel/kqueue/write/t_pipe.





Home | Main Index | Thread Index | Old Index