This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.12-182-gb76b818
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 11 Oct 2010 14:58:55 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.12-182-gb76b818
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via b76b818e6fe2061e778b3a9bbe63c554c3f9b3c1 (commit)
from 1751705d1c4e8b7aba391391d1d8d88fe8c9d8b8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b76b818e6fe2061e778b3a9bbe63c554c3f9b3c1
commit b76b818e6fe2061e778b3a9bbe63c554c3f9b3c1
Author: Ulrich Drepper <drepper@gmail.com>
Date: Mon Oct 11 10:58:31 2010 -0400
psiginfo relied too much on sys_siglist.
diff --git a/ChangeLog b/ChangeLog
index 8515aa1..bc6cfa7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2010-10-11 Ulrich Drepper <drepper@gmail.com>
+ [BZ #12108]
+ * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
+ to have entries in sys_siglist.
+
[BZ #12093]
* sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
be NULL.
diff --git a/NEWS b/NEWS
index 832dd20..fcb1b57 100644
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,7 @@ Version 2.13
* The following bugs are resolved with this release:
3268, 7066, 10851, 11611, 11640, 11701, 11840, 11856, 11883, 11903, 11904,
- 11968, 11979, 12005, 12037, 12067, 12077, 12092, 12093, 12107
+ 11968, 11979, 12005, 12037, 12067, 12077, 12092, 12093, 12107, 12108
* New Linux interfaces: prlimit, prlimit64, fanotify_init, fanotify_mark
diff --git a/stdio-common/psiginfo.c b/stdio-common/psiginfo.c
index 49b86ec..627c21c 100644
--- a/stdio-common/psiginfo.c
+++ b/stdio-common/psiginfo.c
@@ -85,9 +85,28 @@ psiginfo (const siginfo_t *pinfo, const char *s)
const char *desc;
if (pinfo->si_signo >= 0 && pinfo->si_signo < NSIG
- && (desc = INTUSE(_sys_siglist)[pinfo->si_signo]) != NULL)
+ && ((desc = INTUSE(_sys_siglist)[pinfo->si_signo]) != NULL
+ || (pinfo->si_signo >= SIGRTMIN && pinfo->si_signo < SIGRTMAX)))
{
- fprintf (fp, "%s (", _(desc));
+ if (desc == NULL)
+ {
+ if (pinfo->si_signo - SIGRTMIN < SIGRTMAX - pinfo->si_signo)
+ {
+ if (pinfo->si_signo == SIGRTMIN)
+ fprintf (fp, "SIGRTMIN (");
+ else
+ fprintf (fp, "SIGRTMIN+%d (", pinfo->si_signo - SIGRTMIN);
+ }
+ else
+ {
+ if (pinfo->si_signo == SIGRTMAX)
+ fprintf (fp, "SIGRTMAX (");
+ else
+ fprintf (fp, "SIGRTMAX-%d (", SIGRTMAX - pinfo->si_signo);
+ }
+ }
+ else
+ fprintf (fp, "%s (", _(desc));
const char *base = NULL;
const uint8_t *offarr = NULL;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
NEWS | 2 +-
stdio-common/psiginfo.c | 23 +++++++++++++++++++++--
3 files changed, 26 insertions(+), 3 deletions(-)
hooks/post-receive
--
GNU C Library master sources