Date: Fri, 20 Dec 2002 18:37:07 -0800 From: Alfred Perlstein <bright@mu.org> To: arch@freebsd.org Cc: bde@freebsd.org Subject: pipes and FIONBIO breakage? Message-ID: <20021221023707.GK23663@elvis.mu.org>
next in thread | raw e-mail | index | archive | help
I noticed that the ioctl handler for pipes doesn't do anything for FIONBIO requests, this is in contrast to the socket handling of FIONBIO requests which sets the SS_NBIO flag in the socket structure. I think this may cause a descrepency between how pipes and sockets behave where there shouldn't be one. This can happen if one dup(2)s a pipe and then calls FIONBIO on it, the file status may change only one of the descriptors not the actual underlying pipe's behavior. Should we actually OR in a flag into the pipe's data structure and use that instead of the struct file's flag? This seems to be what the socket code does. thanks, -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021221023707.GK23663>