[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Adding an option to avoid SIGPIPE for all file descriptors
tls%panix.com@localhost (Thor Lancelot Simon) writes:
>On Tue, Jan 24, 2012 at 03:07:45AM +0000, David Holland wrote:
>> On Mon, Jan 23, 2012 at 09:28:48PM -0500, Christos Zoulas wrote:
>> > [stuff]
>> One thing jumps out at me: if it's a file-level flag, shouldn't it be
>> sufficient to use F_GETFL / F_SETFL to manipulate it, rather than
>> adding new fcntls?
>You want to be careful with that because of all the idiots who
>F_SETFL to O_NONBLOCK without getting the old value first. :-/
Those idiots will benefit from being killed by a SIGPIPE. After all
SIGPIPE is there for the benefit of the other idiots that do not
handle write errors.
Unfortunately noone did ever think about a SIGNOSPACE and that's
why every Unix system now requires an infinite disk.
Michael van Elst
"A potential Snark may lurk in every tree."
Main Index |
Thread Index |