>>>> "I" == Isaac Hollander
<ysh(a)mindspring.com> writes:
I> #ifdef SIGUSR1
I> handle_signal_if_fatal (SIGUSR1); /* POSIX */
I> #endif
I> I assume the /* POSIX */ comment means that SIGUSR1 is a POSIX signal as
I> opposed to an ANSI signal, not that the signal is handled with POSIX
I> sementics.
The comment simply means it's defined by the Posix standard. This has
nothing to do with sigaction.
I> So there's a possibility that in between the 2 calls to signal, another
I> signal could arrive, and since the signal is reset to default behavior,
I> the unignored SIGUSR1 causes a crash.
I> Would using the POSIX signal functions (sigaction and friends) help here?
My guess is that XEmacs is already using sigaction, even if it doesn't
look like it.
Try `make signal.i' and look at the preprocessor output.