summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-20 02:18:14 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-20 02:18:14 +0000
commitb5c69d99130e6f70505c353a5eddd3405dda3108 (patch)
tree9330ce246f1bc7dd9491c80b3e8503a0caa97bc4 /linuxthreads
parent4d512b65536b02d2f2961dd2e3c47678cfc3e5eb (diff)
downloadglibc-b5c69d99130e6f70505c353a5eddd3405dda3108.tar.gz
glibc-b5c69d99130e6f70505c353a5eddd3405dda3108.tar.xz
glibc-b5c69d99130e6f70505c353a5eddd3405dda3108.zip
Update.
1999-09-19  Ulrich Drepper  <drepper@cygnus.com>

	* po/pl.po: Updated.

1999-09-17  Andreas Schwab  <schwab@suse.de>

	* Makefile (clean): Also remove $(postclean) files.

1999-09-15  Andreas Jaeger  <aj@suse.de>

	* pwd/Makefile (otherlibs): Add for building with static-nss.
	* inet/Makefile (otherlibs): Likewise.

1999-09-15  Andreas Jaeger  <aj@suse.de>

	* sysdeps/generic/aio_sigqueue.c (__aio_sigqueue): Use old style
	function definition to avoid a compilation failure.

1999-09-15  Andreas Jaeger  <aj@suse.de>

	* stdlib/tst-environ.c (main): Add getenv regression test for
	environment variable that's one character long.

1999-09-15  Andreas Jaeger  <aj@suse.de>

	* 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).
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog6
-rw-r--r--linuxthreads/signals.c6
2 files changed, 9 insertions, 3 deletions
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  <drepper@cygnus.com>
+
+	* 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  <drepper@cygnus.com>
 
 	* 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;
     }