mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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).
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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].
|
||||||
|
|
||||||
2012-10-27 Andreas Jaeger <aj@suse.de>
|
2012-10-27 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
|
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
|
||||||
|
@ -95,7 +95,7 @@ __aio_notify_only (struct sigevent *sigev)
|
|||||||
else if (sigev->sigev_notify == SIGEV_SIGNAL)
|
else if (sigev->sigev_notify == SIGEV_SIGNAL)
|
||||||
{
|
{
|
||||||
/* We have to send a 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
|
/* 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. */
|
non-queuing signal here when SA_SIGINFO is not set for the signal. */
|
||||||
# ifdef BROKEN_THREAD_SIGNALS
|
# ifdef BROKEN_THREAD_SIGNALS
|
||||||
|
Reference in New Issue
Block a user