On Tue, 24 Sep 2002, Terry Lambert wrote:

> Daniel Eischen wrote:
> > > Set SA_RESTART in the sa_flags of the sigaction for the scheduling
> > > signal.  Use "man sigaction" for details.
> > 
> > Yes, for application installed signal handlers.
> > 
> > Try this for library installed signal handlers (patch
> > to -current).
> > 
> >         http://people.freebsd.org/~deischen/libc_r.diffs
> 
> Most of this diff is good, but...
> 
> -       act.sa_flags = SA_RESTART | SA_SIGINFO;
> +       act.sa_flags = SA_RESTART | SA_SIGINFO | SA_RESTART;
> 
> Setting the bejesus out of the bit probably isn't more effective
> than setting it once.

It means we're trying much harder to restart the system
call.  The kernel will see this; trust me ;-)

Actually, SA_ONSTACK should be substituted for one of the
SA_RESTARTs.

-- 
Dan Eischen



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to