> It gets three *if SA_SIGINFO is set in act.sa_flags*, which is is not.
That isn't what the comment says though:
SA_SIGINFO [...]
If cleared and the signal is caught, the first argument is
also the signal number but the second argument is the signal
code identifying the cause of the signal. The third argument
points to a sigcontext_t structure containing the receiving
process's context when the signal was delivered. */
> That's what I did in my last patch, but without SA_SIGINFO set. This
> doesn't work since the additional args passed in the sa_handler case are
> not in any prototype, to g++ rightly complains (and this is an
> implementation detail I'd not rely upon if it can be avoided).
OK, I see, so there is a single prototype for the 2 variants with 3 args.
--
Eric Botcazou