Re: POSIX signal handling versus traditional signal handling
From: Nils Weller (me_at_privacy.net)
Date: 08/24/05
- Next message: Jan Stap: "How to pass network requests to existing child processes?"
- Previous message: Eric Sosman: "Re: Where does environ load from?"
- In reply to: Ulrich Hobelmann: "Re: POSIX signal handling versus traditional signal handling"
- Next in thread: Villy Kruse: "Re: POSIX signal handling versus traditional signal handling"
- Reply: Villy Kruse: "Re: POSIX signal handling versus traditional signal handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Aug 2005 16:27:51 GMT
On 2005-08-24, Ulrich Hobelmann <u.hobelmann@web.de> wrote:
> usenet@sta.samsung.com wrote:
> AFAIK, BSD and POSIX signals (i.e. everything except ooold Unix V7 or
> something) are reliable, so even if you process receives two same
Note that in System V, signal() was never fixed, so you still have to
use sigset() (introduced in SVR3), sigaction() or bsd_signal() instead
to get reliable signals - or link with the BSD compatibility library to
make signal() behave like bsd_signal(). The problem is that POSIX leaves
the choice of reset-or-don't-reset after calling signal() up to the
implementation, so System V derivatives continue to do it the way
they've always done it: Don't reset.
> signals in a short timeframe, the behavior will probably be that after
> the first handler returns, the second signal is delivered. Old behavior
No, the second signal will be lost. sigqueue() can send signals with
the semantics you've described, however. Unfortunately, queued signals
are a realtime extension still not provided by FreeBSD/NetBSD/OpenBSD/
MacOS X (and I seem to recall that older Linux implementations do not
support queueing of non-realtime (SIGRTMIN - SIGRTMAX) signals.)
-- Nils R. Weller, Bremen / Germany My real email address is ``nils<at>gnulinux<dot>nl'' ... but I'm not speaking for the Software Libre Foundation!
- Next message: Jan Stap: "How to pass network requests to existing child processes?"
- Previous message: Eric Sosman: "Re: Where does environ load from?"
- In reply to: Ulrich Hobelmann: "Re: POSIX signal handling versus traditional signal handling"
- Next in thread: Villy Kruse: "Re: POSIX signal handling versus traditional signal handling"
- Reply: Villy Kruse: "Re: POSIX signal handling versus traditional signal handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|