This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, in the pthread implementation of aio_notify, to check that realtime signals are supported there is the wrong check "#if _POSIX_REALTIME_SIGNALS", which matches also -1 (i.e. rt signals not supported at all). The attached patch fixes this case. Thanks, -- Pino Toscano
aio_notify: fix _POSIX_REALTIME_SIGNALS check Check that _POSIX_REALTIME_SIGNALS is greater than zero to assume realtime signals are supported, instead of any non-zero value (including -1). 2012-10-29 Pino Toscano <toscano.pino@tiscali.it> * sysdeps/pthread/aio_notify.c (__aio_notify_only) [_POSIX_REALTIME_SIGNALS]: Change condition to [_POSIX_REALTIME_SIGNALS > 0]. --- a/sysdeps/pthread/aio_notify.c +++ b/sysdeps/pthread/aio_notify.c @@ -95,7 +95,7 @@ __aio_notify_only (struct sigevent *sige else if (sigev->sigev_notify == SIGEV_SIGNAL) { /* We have to send a signal. */ -#if _POSIX_REALTIME_SIGNALS +#if _POSIX_REALTIME_SIGNALS > 0 /* Note that the standard gives us the option of using a plain non-queuing signal here when SA_SIGINFO is not set for the signal. */ # ifdef BROKEN_THREAD_SIGNALS
Attachment:
signature.asc
Description: This is a digitally signed message part.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |