Date: Sun, 23 Mar 2003 19:32:00 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Dave Hayes <dave@jetcafe.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: SIGPIPE and threaded servers Message-ID: <20030324013200.GK63147@dan.emsphone.com> In-Reply-To: <200303240122.h2O1MHuq046776@hokkshideh2.jetcafe.org> References: <200303240122.h2O1MHuq046776@hokkshideh2.jetcafe.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 23), Dave Hayes said: > I have a relatively simple threaded TCP server that services high > volumes of requests. Currently it appears to randomly crash receiving > a SIGPIPE. > > Attempts to ignore SIGPIPE via the sigaction() semantic only prevent > me from sending the signal with "kill" to test whether or not SIGPIPE > is actually ignored. =/ Then it's being ignored and your job is done :) > What is going on here? From the signal manpage: Name Default Action Description ---- -------------- ----------- SIGPIPE terminate process write on a pipe with no reader It's doing just what it is supposed to. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030324013200.GK63147>