Avoid SIGPIPE and polite kill child process.
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 23 Feb 2014 16:25:12 +0000 (17:25 +0100)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 23 Feb 2014 16:25:12 +0000 (17:25 +0100)
commit85edd07c3958a6344384a239935f0ddea9760795
treef1b7e9e46b0aea879d1c63777c1bf557b9423709
parentcac160c1d639818275419a022fed02e48e1a7d7d
Avoid SIGPIPE and polite kill child process.

SIGPIPE when using send method and remote side closed connection.

Portable alternatives: sighandler for SIGPIPE or block/ignore SIGPIPE. In some situations we
may not ignore SIGPIPE (if we are writing some API we may not just swallow SIGPIPE) because of that
depending o the situation we could ignore or block SIGPIPE.
There is SIGPIPE JUST when using send/write (no with read/recv) and remote side closed connection.
Daemon/javafork.c
Daemon/javafork.h