From b5c69d99130e6f70505c353a5eddd3405dda3108 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 20 Sep 1999 02:18:14 +0000 Subject: Update. 1999-09-19 Ulrich Drepper * po/pl.po: Updated. 1999-09-17 Andreas Schwab * Makefile (clean): Also remove $(postclean) files. 1999-09-15 Andreas Jaeger * pwd/Makefile (otherlibs): Add for building with static-nss. * inet/Makefile (otherlibs): Likewise. 1999-09-15 Andreas Jaeger * sysdeps/generic/aio_sigqueue.c (__aio_sigqueue): Use old style function definition to avoid a compilation failure. 1999-09-15 Andreas Jaeger * stdlib/tst-environ.c (main): Add getenv regression test for environment variable that's one character long. 1999-09-15 Andreas Jaeger * sysdeps/unix/sysv/linux/i386/sigaction.c: Protect real time signal definitions to let glibc compile with older Linux versions (2.0.10 to 2.1.100 or so). --- linuxthreads/ChangeLog | 6 ++++++ linuxthreads/signals.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'linuxthreads') diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index a67824127e..1551059a4a 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,9 @@ +1999-09-19 Ulrich Drepper + + * signals.c (sigaction): Correct last patch. Don't select + pthread_sighandler_rt based on the signal number but instead of + the SA_SIGINFO flag. + 1999-09-18 Ulrich Drepper * pthread.c (pthread_handle_sigrestart_rt): New function. Use diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c index df375e8e46..0c9bffd00b 100644 --- a/linuxthreads/signals.c +++ b/linuxthreads/signals.c @@ -139,10 +139,10 @@ int sigaction(int sig, const struct sigaction * act, if (act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL && sig > 0 && sig < NSIG) { - if (sig >= SIGRTMIN) - newact.sa_handler = (__sighandler_t) pthread_sighandler_rt; + if (act->sa_flags & SA_SIGINFO) + newact.sa_handler = (__sighandler_t) pthread_sighandler_rt; else - newact.sa_handler = (__sighandler_t) pthread_sighandler; + newact.sa_handler = (__sighandler_t) pthread_sighandler; } newactp = &newact; } -- cgit v1.2.3