Re: System call v.s. errno
From: Martin Waitz
Date: Wed May 04 2005 - 08:58:18 EST
hoi :)
On Wed, May 04, 2005 at 09:22:09AM -0400, Richard B. Johnson wrote:
> Does anybody know for sure if global 'errno' is supposed to
> be altered after a successful system call? I'm trying to
> track down a problem where system calls return with EINTR
> even though all signal handlers are set with SA_RESTART in
> the flags.
syscalls are only automatically restarted by the interrupt if the
syscall returns -ERESTARTSYS. If it returns -EINTR itself then that will
be delivered to userspace even when it sets SA_RESTART.
--
Martin Waitz
Attachment:
signature.asc
Description: Digital signature