lock with openoffice build with libkse

Alexander Kabaev ak03 at gte.com
Thu May 29 13:25:26 PDT 2003


On Thu, 29 May 2003 16:00:52 -0400 (EDT)
Daniel Eischen <eischen at pcnet.com> wrote:

> On Thu, 29 May 2003, Alexander Kabaev wrote:
> 
> > Daniel,
> > 
> > attached program is enough to trigger the loop. It looks like
> > the setjump/longjmp from signal handler trick only forks for
>                                                      ^^^^^ works?
> > the first time.
> 
> I'll look at it, but setjmp/longjmp call _sigprocmask() which
> is wrapped by the threads library.  This changes the thread
> signal mask, not the kernel's (kernel thread) signal mask.
> This means that subsequent signals will be blocked because
> the kernel never gets notified that the mask should be
> reset.

This is absolutely correct. I can get the test program to work if I
manually invoke a _sys_sigprocmask between the two tests.

-- 
Alexander Kabaev


More information about the freebsd-threads mailing list