Re: [fpc-pascal] Re: How to handle SIGPIPE

2012-03-20 Thread michael . vancanneyt
On Tue, 20 Mar 2012, Tobias Giesen wrote: Hi, I think the biggest issue is that MSG_NOSIGNAL is not defined on MAC OS, even though it was added a few years (?) ago. When I ported Synapse, unfortunately I defined it as 0. Now I changed that to $2 and I'm hoping for the best ... I also

Re: [fpc-pascal] Re: How to handle SIGPIPE

2012-03-20 Thread Jonas Maebe
On 20 Mar 2012, at 08:41, Tobias Giesen wrote: I think the biggest issue is that MSG_NOSIGNAL is not defined on MAC OS, even though it was added a few years (?) ago. When I ported Synapse, unfortunately I defined it as 0. Now I changed that to $2 and I'm hoping for the best ... Hoping

Re: [fpc-pascal] Re: How to handle SIGPIPE

2012-03-20 Thread Tobias Giesen
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