* Dmitry Dicky <[EMAIL PROTECTED]> [001219 09:01] wrote:
>
> I use non blocking socket and it receives data with no problems.
> When alarm occures, the signal delivered to the process and alarm handler
> prints a signal number. As I understand after this recvfrom should
> return -1 and errno should be set to EINTR.
>
> BUt, upon signal delivery (actually any signal, CHLD for example)
> recvfrom() still hangs the program execution and awaits data.
>
> However, man pages say that recvfrom() will return -1 if the call has been
> interrupted.
>
> Is this a system bug or just my misunderstanding?
See the sigaction manpage and how one enable/disables system call
restarts.
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message