Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2003 16:25:24 -0400
From:      Alexander Kabaev <ak03@gte.com>
To:        Daniel Eischen <eischen@pcnet.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: lock with openoffice build with libkse
Message-ID:  <20030529162524.252bdf43.ak03@gte.com>
In-Reply-To: <Pine.GSO.4.10.10305291556180.20508-100000@pcnet5.pcnet.com>
References:  <20030529194855.GA58411@kan.dnsalias.net> <Pine.GSO.4.10.10305291556180.20508-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 29 May 2003 16:00:52 -0400 (EDT)
Daniel Eischen <eischen@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030529162524.252bdf43.ak03>