[BusyBox] Re: syslogd sometimes dies writing to remote logger

Dan Kegel dank at kegel.com
Tue Apr 2 12:17:08 UTC 2002


Matt Kraai wrote:
> 
> On Tue, Apr 02, 2002 at 11:39:12AM -0700, Manuel Novoa III wrote:
> > True but full_write does no EINTR checking... and it seems silly to go
> > on a "what calls can fail with EINTR" hunt.  Wouldn't it just be better
> > to force restartable syscalls and ignore EINTR entirely?  Especially
> > since, if you use POSIX signal semantics and don't restart syscalls,
> > even stdio functions like fputc() can fail with EINTR (which is why I
> > had to remove EINTR checking in uClibc's stdio lib).  Who wants to
> > do EINTR checking on every stdio call?
> 
> I didn't know it was possible to have syscalls restart
> automatically.  How do we do so?

When you install the signal handler with sigaction you have
the choice.

BTW it's not always desirable.  Sometimes you want to let
a signal break you out of, say, a poll call.  Most applications
probably don't care, though...
- Dan



More information about the busybox mailing list