It comes from:
/usr/src/linux/include/linux/errno.h
You should read about "restartable system calls" in some UNIX book
like Advanced Programming in UNIX by stevens or something.
It means basically that the system call you made was interrupted due
to a signal (e.g. sigalarm), and the kernel is letting you know of
this fact. You are free to restart this call and it will continue from
where it was interrupted.
The "usual" error for this is EINTR. I'm surprised you got
ERESTARTSYS, but it means (almost) the same thing.
Hope that helps,
~sumedh
[EMAIL PROTECTED] writes:
> Hi all,
> A program run under linux using raw socket gave this error as return from
> recvfrom().
> recvfrom(3, 0x804b9d0, 4096, 0, 0xbffffd60, 0xbffffd70) = ? ERESTARTSYS
> (To be restarted)
> I did not find the err. string defined in the man page of recvfrom.
> Kernel sources says that the error is generated when
> if (current->signal & ~current->blocked) is TRUE.
> e.g. /usr/src/linux/net/ipv4/tcp.c
> Those who are interested in net programming and had experienced
> such an error are requested to provide me with some info.
> TIA,
> Cheers,
> avi.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]