[Haifux] Telling the kernel business is closed (my weekly riddle)
eli at billauer.co.il
Mon Jun 27 22:44:53 MSD 2011
Uhhmm... that sounds like a violent solution to me. It would make sense
if I knew that the potential programmers are top-notch UNIX experts.
Otherwise, I'm not sure they will appreciate me killing their process.
The point about this is to give the impression that I'm doing things
right, and the hardware fails.
But it's a nice take on the subject. ;)
Oron Peled wrote:
> Another strategy is to throw SIGPIPE at the relevant processes:
> * Con: it is usually expected upon write(2) not read(2) et-al.
> * Pros:
> - At least for write(2) the semantics is natural -- no more writes
> on this file descriptor.
> - Kills the offending process by default.
> - Process may catch it in a signal handler (easy to write some
> global cleanup + exit code)
More information about the Haifux