X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3645D11F8C33 for ; Sun, 23 Apr 2006 01:26:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 36534-01 for ; Sun, 23 Apr 2006 01:26:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 8757D11F903B for ; Sun, 23 Apr 2006 01:10:03 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k3N49wS25903; Sun, 23 Apr 2006 00:09:58 -0400 (EDT) From: Bruce Momjian Message-Id: <200604230409.k3N49wS25903@candle.pha.pa.us> Subject: Re: Receiving SIGPIPE for PQfinish() In-Reply-To: <20060313155531.GA191@alamut> To: Volkan YAZICI Date: Sun, 23 Apr 2006 00:09:58 -0400 (EDT) CC: Tom Lane , pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/23 X-Sequence-Number: 6114 Did you ever get this fixed? --------------------------------------------------------------------------- Volkan YAZICI wrote: > On Mar 12 11:18, Tom Lane wrote: > > pqsecure_write should have disabled SIGPIPE already. You should look > > into why that is seemingly not working. > > When I omit --enable-thread-safety, code doesn't handle in the case of > a SIG_ERR return on the call to pqsignal() made from pqsecure_write(). > > Furthermore, I still couldn't figure out why pqsignal() cannot handle > SIGPIPE - despite pqsignal() doesn't return SIG_ERR. (A related small > debug output is attached.) > > Everything works fine when thread safety is enabled. > > > Regards. [ Attachment, skipping... ] > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings -- Bruce Momjian http://candle.pha.pa.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +