[M3devel] chosing SIG_SUSPEND?

Tony Hosking hosking at cs.purdue.edu
Tue Jan 20 17:42:01 CET 2009


Choose SIGRTMAX first if defined, then SIGUSR2.  I don't thing NSIG-1  
is reliable, but just works on some systems.

On 21 Jan 2009, at 01:12, Jay wrote:

>
> What is the algorithm for chosing SIG_SUSPEND?
>
> Something like:
>
>   #include
>
>   #ifdef __APPLE__
>   /* nothing -- SIG_SUSPEND not used */
>   #elif defined(NSIG)
>   #define SIG_SUSPEND (NSIG - 1)
>   #elif defined(_NSIG)
>   #define SIG_SUSPEND (_NSIG - 1)
>   #elif defined(SIGRTMAX)
>   #define SIG_SUSPEND SIGRTMAX
>   #else
>   #define SIG_SUSPEND SIGUSR2
>   #endif
>
> ?
>
> Whatever it is, I think it should be in RTSignalC.c.
>
> - Jay




More information about the M3devel mailing list