Re: libpq and psql not on same page about SIGPIPE

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Manfred Spraul <manfred(at)colorfullife(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: libpq and psql not on same page about SIGPIPE
Date: 2004-12-01 21:52:16
Message-ID: 41AE3D10.2030804@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian wrote:

[... SIGPIPE suppression in libpq ...]

Linux also has MSG_NOSIGNAL as a send() flag that might be useful. It
suppresses generation of SIGPIPE for just that call. No, it doesn't work
for SSL and it's probably not very portable, but it might be a good
platform-specific optimization for the common case.

-O

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2004-12-01 21:53:21 Re: Where is the connection info
Previous Message Tom Lane 2004-12-01 20:54:11 Re: nodeAgg perf tweak

Browse pgsql-patches by date

  From Date Subject
Next Message Thomas Hallgren 2004-12-01 21:57:29 Re: SPI function to investigate query semantics
Previous Message Tom Lane 2004-12-01 21:13:03 Re: SPI function to investigate query semantics