[Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3

T Lee Davidson t.lee.davidson at gmail.com
Wed Mar 7 05:41:24 CET 2018



On 03/06/2018 04:39 PM, bugtracker at gambaswiki.org wrote:
> http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4-
> 
> Comment #22 by Olivier CRUILLES:
> 
> I whish to prevent the 'Socket broken Pipe' and be sure that the socket is not close on server side before I write on it, so as I can read on Internet, exist some options to help this case.
> Could you take a look at this page on Internet and see if you can add available options on Gambas side regarding that for example or other:
> 
> To ignore the SIGPIPE signal, use the following code:
> signal(SIGPIPE, SIG_IGN);
> 
> Related page:
> 
> https://stackoverflow.com/questions/108183/how-to-prevent-sigpipes-or-handle-them-properly
> 
> Thank you
> Olivier
> 

Wouldn't Signal[Signal.SIGPIPE].Ignore do that?


-- 
Lee


More information about the User mailing list