This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
libc 2.3 and RT signals broken
- From: Daniel Jacobowitz <dan at debian dot org>
- To: libc-alpha at sources dot redhat dot com, debian-glibc at lists dot debian dot org
- Date: Mon, 28 Oct 2002 21:40:19 -0500
- Subject: libc 2.3 and RT signals broken
SIGRTMIN has changed behavior recently in 2.3; at the same time as:
2002-09-18 Ulrich Drepper <drepper@redhat.com>
* signal/allocrtsig.c: Move to...
* sysdeps/generic/allocrtsig.c: ...here. New file.
as far as I can tell.
The problem is something I ran into in GDB today: the location of a
source file overrides the normal search path. If a file in
sysdeps/generic/ includes a header using "", the copy in
sysdeps/generic/ will win. So we get sysdeps/generic/testrtsig.h
instead of the sysdeps/unix/sysv/linux/testrtsig.h, and
kernel_has_rtsig always returns 0.
So SIGRTMIN is -1. Oops.
Why does allocrtsig.c have to be in sysdeps/generic? If it does need
to, then we will have to duplicate it in sysdeps/unix/sysv/linux/; but
since nothing overrides it I don't see why it had to move out of
signal/.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer