Skip site navigation (1) Skip section navigation (2)

Re: Avoiding SIGPIPE (was Re: OSDL DBT-2 w/ PostgreSQL

From: markw(at)osdl(dot)org
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: manfred(at)colorfullife(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Avoiding SIGPIPE (was Re: OSDL DBT-2 w/ PostgreSQL
Date: 2003-11-03 20:02:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On  1 Nov, Tom Lane wrote:
> Manfred Spraul <manfred(at)colorfullife(dot)com> writes:
>> Tom Lane wrote:
>>> What we really want is to turn off SIGPIPE delivery on our socket
>>> (only), but AFAIK there is no API to do that.
>> Linux has as MSG_NOSIGNAL flag for send(), but that seems to be Linux 
>> specific.
> Hmm ... a Linux-specific solution would be better than none at all.
> A bigger objection is that we couldn't get libssl to use it (AFAIK).
> The flag really needs to be settable on the socket (eg, via fcntl),
> not per-send.

I'm a bit unfamiliar with this stuff, so I wanted to ask if this was
something that Linux appears to be handling differently than other OS's,
or if this was a platform specific issue with postgresql.


In response to


pgsql-hackers by date

Next:From: Neil ConwayDate: 2003-11-03 20:10:29
Subject: Re: adding support for posix_fadvise()
Previous:From: Peter EisentrautDate: 2003-11-03 19:25:23
Subject: Re: RC1 on AIX - working thus far

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group