[fpc-pascal] Re: How to handle SIGPIPE

Tobias Giesen tobias_subscriber at tgtools.com
Tue Mar 20 12:50:00 CET 2012

> Hoping is not enough when changing random values. 
> See http://bugs.freepascal.org/view.php?id=9401 
> for more info.

Wow. Many thanks!

I read that MSG_NOSIGNAL is now supported by MacOS, too, but I don't
really know.

So now I am calling fpsetsockopt with SO_NOSIGPIPE as the first thing
after every fpSocket call. That should probably do it, right?

The bug comments on the above URL are not totally clear because you
cannot actually pass any options to the Connect call. So I assume
you should use fpsetsockopt before the Connect call.


More information about the fpc-pascal mailing list