[ Charset ISO-8859-1 unsupported, converting... ]
> > Ask your OS vendor. These are OS errors.
> > But:
> > 11 is iirc EAGAIN, which means "try again", which is due to a potential
> > deadlock in the kernel not being handled properly.
>
> You say that SocketErrors are OS errors but some influence the FPC
> compiler must have.
You don't happen to fall for the trap where you use syscalls (e.g. a write)
before you query the error ?
Try to rework you code as follows
if fpxxxx<>0 then
begin
aninteger:=fpgeterrno;
writeln(aninteger);
end;
and not
writeln(fpgeterrno); // the write prologue might destroy the contents.
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal