Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-20 Thread Aleš Katona
Dňa Pi, 2008-09-19 o 19:31 +0100, Jonas Maebe napísal: > On 19 Sep 2008, at 11:16, Aleš Katona wrote: > > > All you need to do is break a send, make a program which repeats sends > > and kill it in the middle of one. If the other end exits with SIGPIPE > > we've got a loser. > > No, if the kernel

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-19 Thread Jonas Maebe
On 19 Sep 2008, at 11:16, Aleš Katona wrote: All you need to do is break a send, make a program which repeats sends and kill it in the middle of one. If the other end exits with SIGPIPE we've got a loser. No, if the kernel developers say it is not supported, then you don't use it. Because e

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-19 Thread Aleš Katona
Dňa Pi, 2008-09-19 o 10:45 +0200, Marco van de Voort napísal: > In our previous episode, Aleš Katona said: > > Anyway if it's really there and tested, it should be added to the Darwin > > unxsockh.inc. > > As Jonas said, testing is non-trivial, since it is about a certain > errorhandling condition

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-19 Thread Marco van de Voort
In our previous episode, Ale?? Katona said: > Anyway if it's really there and tested, it should be added to the Darwin > unxsockh.inc. As Jonas said, testing is non-trivial, since it is about a certain errorhandling condition, not a basic compile+connect. __

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-19 Thread Aleš Katona
Dňa Št, 2008-09-18 o 13:49 +0200, Marco van de Voort napísal: > In our previous episode, Felipe Monteiro de Carvalho said: > > The sockets unit for Mac OS X (FPC 2.2.2) does not contain > > MSG_NOSIGNAL, which is necessary for the correct functioning of the > > Synapse library. > > > > I modifyed

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-18 Thread Jonas Maebe
On 18 Sep 2008, at 11:47, Felipe Monteiro de Carvalho wrote: The sockets unit for Mac OS X (FPC 2.2.2) does not contain MSG_NOSIGNAL, which is necessary for the correct functioning of the Synapse library. See http://bugs.freepascal.org/view.php?id=9401 Jonas

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-18 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > Some searching says it doesn't exist in Mac OS X: > > http://lists.apple.com/archives/macnetworkprog/2002/Dec/msg00091.html > > But they have an equivalent. I checked on my 10.4 and it is as there. It is not in the headers, and SO_nosi

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-18 Thread Felipe Monteiro de Carvalho
Some searching says it doesn't exist in Mac OS X: http://lists.apple.com/archives/macnetworkprog/2002/Dec/msg00091.html But they have an equivalent. Curiously, my very simple webserver worked when hardcoding the constant =P http://wiki.lazarus.freepascal.org/Networking#Webserver_example -- Fe

Re: [fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-18 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > The sockets unit for Mac OS X (FPC 2.2.2) does not contain > MSG_NOSIGNAL, which is necessary for the correct functioning of the > Synapse library. > > I modifyed the Synapse source (locally) to use $2 for > MSG_NOSIGNAL, which is th

[fpc-devel] MSG_NOSIGNAL in Mac OS X

2008-09-18 Thread Felipe Monteiro de Carvalho
Hello, The sockets unit for Mac OS X (FPC 2.2.2) does not contain MSG_NOSIGNAL, which is necessary for the correct functioning of the Synapse library. I modifyed the Synapse source (locally) to use $2 for MSG_NOSIGNAL, which is the same value for FreeBSD/NetBSD. Note that I have very little