POSIX specification defines SIGRTMAX. _NSIG is not defined on all
platforms (e.g, AIX).
Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
# define _POSIX_VDISABLE VDISABLE
#endif
-static volatile sig_atomic_t signo[_NSIG];
+static volatile sig_atomic_t signo[SIGRTMAX];
static void
handler(int s)
}
restart:
- for (i = 0; i < _NSIG; i++)
+ for (i = 0; i < SIGRTMAX; i++)
signo[i] = 0;
nr = -1;
save_errno = 0;
* If we were interrupted by a signal, resend it to ourselves
* now that we have restored the signal handlers.
*/
- for (i = 0; i < _NSIG; i++) {
+ for (i = 0; i < SIGRTMAX; i++) {
if (signo[i]) {
kill(getpid(), i);
switch (i) {