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

Avoiding SIGPIPE (was Re: OSDL DBT-2 w/ PostgreSQL 7.3.4 and 7.4beta5)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Manfred Spraul <manfred(at)colorfullife(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Avoiding SIGPIPE (was Re: OSDL DBT-2 w/ PostgreSQL 7.3.4 and 7.4beta5)
Date: 2003-11-01 19:20:46
Message-ID: 2319.1067714446@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
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.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Michael MaugerDate: 2003-11-01 20:52:44
Subject: Re: Proposal: psql force prompting on notty
Previous:From: Mark WongDate: 2003-11-01 19:19:55
Subject: Re: OSDL DBT-2 w/ PostgreSQL 7.3.4 and 7.4beta5

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