Did you remove the SIGHUP and SIGPIPE cases on purpose?