[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in sigpending.c (glibc 2.1.3, 2.2.5)

From: Michael Kerrisk
Subject: Bug in sigpending.c (glibc 2.1.3, 2.2.5)
Date: Wed, 13 Dec 2000 09:25:30 +0100

This is a bug report for the sigpending() implementation in glibc 2.1.3& 

Linux Kernel 2.2.14, SuSE 6.4 distribution

in: GLIBC 2.1.3 (same error appears still to be present in GLIBC 2.2.5, 
though I have not compiled against this library version)

Synopsis: calls to sigpending() incorrectly return the mask of pending 
signals.  Instead of returning the 64 bit mask of signals, only the first 
32 bits are correctly returned (thus real-time signals are incorrectly 
handled).  It appears that the library routine is incorrectly calling 
sys_sigpending() instead of sys_rt_sigpending().

Solution: It seems to me that the line:

# ifdef __NR_rt_pending

should read

# ifdef __NR_rt_sigpending


Michael Kerrisk
Michael Kerrisk
mailto: address@hidden

"More than any other time in history, mankind faces a crossroads.
One path leads to despair and utter hopelessness. The other, to total
extinction. Let us pray we have the wisdom to choose correctly."

                 Woody Allen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]