When using a function like fpAccept on a non-blocking socket, in some
cases -1 is returned with a documented (Linux kernel) error code of
EAGAIN. Should I be looking for this in errno or SocketError?
When I've retrieved a numeric code from errno or SocketError, is there a
way of converting it
In our previous episode, Mark Morgan Lloyd said:
> When using a function like fpAccept on a non-blocking socket, in some
> cases -1 is returned with a documented (Linux kernel) error code of
> EAGAIN. Should I be looking for this in errno or SocketError?
Socketerror is more portable, but on *nix
Marco van de Voort wrote:
In our previous episode, Mark Morgan Lloyd said:
When using a function like fpAccept on a non-blocking socket, in some
cases -1 is returned with a documented (Linux kernel) error code of
EAGAIN. Should I be looking for this in errno or SocketError?
Socketerror is mor
On 8/3/2012 18:24, Marco van de Voort wrote:
EAGAIN generally means that you should try again. So repeat until
repeat
res:=dofunc;
err:=geterrno;
until (res<>-1) or ((err<>ESysEINTR) and (err<>ESysEAgain));
it is a workaround against potential deadlock between userland and kern