Re: Fix socketpair(2) handling of unix datagram sockets using cloexec/nonblock

2015-07-17 Thread Jeremy Evans
On 07/16 05:05, Philip Guenther wrote: > On Thu, Jul 16, 2015 at 4:54 PM, Jeremy Evans wrote: > > Fix socketpair(2) on Unix datagram sockets that use SOCK_CLOEXEC or > > SOCK_NONBLOCK. > > > > This fixes a failure in the ruby test suite. > > > > OK? > > No, that'll have false positives on SOCK_RA

Re: Fix socketpair(2) handling of unix datagram sockets using cloexec/nonblock

2015-07-16 Thread Philip Guenther
On Thu, Jul 16, 2015 at 4:54 PM, Jeremy Evans wrote: > Fix socketpair(2) on Unix datagram sockets that use SOCK_CLOEXEC or > SOCK_NONBLOCK. > > This fixes a failure in the ruby test suite. > > OK? No, that'll have false positives on SOCK_RAW sockets. You need to mask things, perhaps a diff like

Fix socketpair(2) handling of unix datagram sockets using cloexec/nonblock

2015-07-16 Thread Jeremy Evans
Fix socketpair(2) on Unix datagram sockets that use SOCK_CLOEXEC or SOCK_NONBLOCK. This fixes a failure in the ruby test suite. OK? Thanks, Jeremy Index: kern/uipc_syscalls.c === RCS file: /cvs/src/sys/kern/uipc_syscalls.c,v retrie