sigpipe handling

From: Manfred Spraul <manfred(at)colorfullife(dot)com>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: sigpipe handling
Date: 2003-11-08 22:10:23
Message-ID: 3FAD69CF.1070604@colorfullife.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Attatched is the latest version of my patch that makes the
signal(SIG_PIPE, SIG_IGN) calls around the send() syscall conditional:
they are not sufficient to ensure that multithreaded libpq users are not
killed by SIGPIPE signals, and they cause a noticable slowdown.
I've switched to a global flag, and two functions to get/set the flag.
Any other ideas how to protect libpq against SIGPIPE?

--
Manfred

Attachment Content-Type Size
patch-sigpipe-global text/plain 8.0 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Marc G. Fournier 2003-11-08 22:54:50 Re: WIN32_DEV CVS branch
Previous Message Bruce Momjian 2003-11-08 20:59:21 WIN32_DEV CVS branch