Re: SIGPIPE handling - Mailing list pgsql-patches

From Kurt Roeckx
Subject Re: SIGPIPE handling
Date
Msg-id 20031116173200.GB29847@ping.be
Whole thread Raw
In response to Re: SIGPIPE handling  (Kurt Roeckx <Q@ping.be>)
Responses Re: SIGPIPE handling
List pgsql-patches
On Sun, Nov 16, 2003 at 06:28:06PM +0100, Kurt Roeckx wrote:
> On Sun, Nov 16, 2003 at 12:56:10PM +0100, Manfred Spraul wrote:
> > Hi,
> >
> > attached is an update of my automatic sigaction patch: I've moved the
> > actual sigaction calls into pqsignal.c and added a helper function
> > (pgsignalinquire(signo)). I couldn't remove the include <signal.h> from
> > fe-connect.c: it's required for the SIGPIPE definition.
> > Additionally I've added a -a flag for pgbench that sets the signal
> > handler before calling PQconnectdb.
>
> Is there a reason we don't make use of the MSG_NOSIGNAL flag to
> send()?  Or is the problem in case of SSL?

Oh, seems to be a Linux only thing?


Kurt


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: SRA Win32 sync() code
Next
From: Tom Lane
Date:
Subject: Re: SIGPIPE handling