On Tue, 15 Feb 2005 13:58:28 +0100, Yves Crespin
<[EMAIL PROTECTED]> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to