[PATCH] Fix misc/pselect.c for tst-cancel-wrappers

Jakub Jelinek jakub@redhat.com
Thu Jan 19 14:56:00 GMT 2006


Hi!

We also need to tell tst-cancel-wrappers that pselect.c handles
cancellation indirectly through __select cancellation.

2006-01-19  Jakub Jelinek  <jakub@redhat.com>

	* misc/pselect.c: Include sysdep-cancel.h again.  Add
	LIBC_CANCEL_HANDLED ().

--- libc/misc/pselect.c.jj	2006-01-19 09:45:10.000000000 +0100
+++ libc/misc/pselect.c	2006-01-19 14:18:50.000000000 +0100
@@ -22,6 +22,7 @@
 #include <stddef.h>	/* For NULL.  */
 #include <sys/time.h>
 #include <sys/select.h>
+#include <sysdep-cancel.h>
 
 
 /* Check the first NFDS descriptors each in READFDS (if not NULL) for read
@@ -63,3 +64,5 @@ __pselect (int nfds, fd_set *readfds, fd
 }
 weak_alias (__pselect, pselect)
 strong_alias (__pselect, __libc_pselect)
+/* __select handles cancellation.  */
+LIBC_CANCEL_HANDLED ();

	Jakub



More information about the Libc-hacker mailing list