[PATCH] One more tst-pselect fix

Jakub Jelinek jakub@redhat.com
Thu Dec 14 18:47:00 GMT 2006


Hi!

The reason why tst-pselect fails even with pselect6 syscall seems
to be incorrect use of sigblock, sigblock's argument is an old style
signal mask, not the signal itself.

2006-12-14  Jakub Jelinek  <jakub@redhat.com>

	* misc/tst-pselect.c (do_test): Fix sigblock argument.

--- libc/misc/tst-pselect.c.jj	2006-12-14 19:24:23.000000000 +0100
+++ libc/misc/tst-pselect.c	2006-12-14 19:44:45.000000000 +0100
@@ -38,7 +38,7 @@ do_test (void)
       return 1;
     }
 
-  if (sigblock (SIGUSR1) != 0)
+  if (sigblock (sigmask (SIGUSR1)) != 0)
     {
       puts ("sigblock failed");
       return 1;

	Jakub



More information about the Libc-hacker mailing list