This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]