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

Dennis Poon dennis at avidsoft.com.hk
Sat Jun 1 08:51:14 CEST 2013


Ewald,

Please kindly share your sample codes for both approaches.
Thanks a lot.

Dennis

Ewald wrote:
>
> 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 
> <http://www.freepascal.org/docs-html/rtl/baseunix/fpsignal.html%20and%20http://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.
>
> --
> Ewald
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2013.0.3343 / Virus Database: 3184/6370 - Release Date: 05/30/13
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130601/f75c5345/attachment.html>


More information about the fpc-pascal mailing list