From: Ulrich Drepper <drepper@gmail.com>
To: Yves Crespin <crespin.quartz@wanadoo.fr>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Yves Crespin <Crespin.Quartz@wanadoo.fr>
Subject: Re: sigwait() and 2.6
Date: Tue, 15 Feb 2005 15:59:36 -0800 [thread overview]
Message-ID: <a36005b5050215155946d5527e@mail.gmail.com> (raw)
In-Reply-To: <4211F1F4.1070806@wanadoo.fr>
On Tue, 15 Feb 2005 13:58:28 +0100, Yves Crespin
<crespin.quartz@wanadoo.fr> wrote:
> ThreadUnblockSignal();
> signo = WaitSignal();
> ThreadBlockSignal();
You expect this to work? Just read the POSIX spec or even the man
pages. All signals sigwait() waits for must be blocked before the
call. You deliberately do the opposite. Swap the ThreadUnblockSignal
and ThreadBlockSignal lines and suddenly the program doesn't crash
anymore.
prev parent reply other threads:[~2005-02-15 23:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3xVku-kH-15@gated-at.bofh.it>
2005-02-15 3:14 ` Radeon FB troubles with recent kernels Vincent C Jones
2005-02-15 12:46 ` Benjamin Herrenschmidt
2005-02-15 12:50 ` Benjamin Herrenschmidt
2005-02-15 12:58 ` sigwait() and 2.6 Yves Crespin
2005-02-15 23:59 ` Ulrich Drepper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a36005b5050215155946d5527e@mail.gmail.com \
--to=drepper@gmail.com \
--cc=crespin.quartz@wanadoo.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox