Manfred Spraul <[EMAIL PROTECTED]> writes: > Is that really necessary?
Unfortunately, yes. libpq can't change the global setting of SIGPIPE without breaking the surrounding application, but we don't want to crash the app if the server connection has disappeared, either. So we have to set the SIGPIPE handler and then restore it around every send(). On some platforms there might be a better way, but this is the only portable way I know about. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]