Sumedh Mungee wrote:
> > 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.
>
> 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.
However the comments in linux/errno.h (where ERESTARTSYS is defined)
indicate that it should never be seen by user programs.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]