Re: Avoiding SIGPIPE (was Re: [HACKERS] OSDL DBT-2 w/ PostgreSQL 7.3.4 and 7.4beta5)

2003-11-01 Thread Tom Lane
Manfred Spraul <[EMAIL PROTECTED]> writes: > What about an option to skip the sigaction calls for apps that can > handle SIGPIPE? If the app is ignoring SIGPIPE globally, then our calls will have no effect anyway. I don't see that this proposal adds any security. regards

Avoiding SIGPIPE (was Re: [HACKERS] OSDL DBT-2 w/ PostgreSQL 7.3.4 and 7.4beta5)

2003-11-01 Thread Tom Lane
Manfred Spraul <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> What we really want is to turn off SIGPIPE delivery on our socket >> (only), but AFAIK there is no API to do that. >> > Linux has as MSG_NOSIGNAL flag for send(), but that seems to be Linux > specific. Hmm ... a Linux-specific solut