[fpc-pascal] How to handle External:SIGPIPE on linux

Ewald ewald at yellowcouch.org
Fri May 31 22:53:35 CEST 2013

On 31 May 2013, at 13:31, Dennis wrote:
> Is there something I can do to trap this external SIGPIPE?  

You might try catching the signal using fpSignal (http://www.freepascal.org/docs-html/rtl/baseunix/fpsignal.html and http://unixhelp.ed.ac.uk/CGI/man-cgi?signal+2) . I can send some example code if you want.

Or you could perhaps block this signal using pthread_sigmask (http://man7.org/linux/man-pages/man3/pthread_sigmask.3.html). I believe I have some example code of this too.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130531/db7d0d39/attachment.html>

More information about the fpc-pascal mailing list