[Mono-list] Status of MSG_NOSIGNAL

Dick Porter dick@ximian.com
Fri, 7 Jun 2002 13:55:39 +0100


On Fri, Jun 07, 2002 at 12:15:24PM +0200, Jaroslaw Kowalski wrote:
> On Fri, 7 Jun 2002, Dick Porter wrote:
> > I'm not sure whether we should ignore SIGPIPE in what is essentially a
> > library.  Temporarily disabling it on systems that dont have MSG_NOSIGNAL
> > should be ok though.
> 
> Did you mean:
> 
> old = signal(SIGPIPE, SIG_IGN)
> sendto()
> signal(SIGPIPE, old)

yes.

> 
> What about the performance?

I doubt it would be too bad.  It's around a write to another process or maybe
another machine anyway.

- Dick