Manfred Spraul <manfred(at)colorfullife(dot)com> writes:
> signal handlers are a process property, not a thread property - that
> code is broken for multi-threaded apps.
Yeah, that's been mentioned before, but I don't see any way around it.
What we really want is to turn off SIGPIPE delivery on our socket
(only), but AFAIK there is no API to do that.
regards, tom lane