public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix linuxthreads/tst-cancel{[45],-static}
@ 2004-09-04  8:05 Jakub Jelinek
  2004-09-07 21:36 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2004-09-04  8:05 UTC (permalink / raw)
  To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers

Hi!

LinuxThreads needs similar treatment as NPTL.

2004-09-04  Jakub Jelinek  <jakub@redhat.com>

	* tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.

--- libc/linuxthreads/tst-cancel4.c.jj	2003-03-06 22:39:15.000000000 +0100
+++ libc/linuxthreads/tst-cancel4.c	2004-09-04 10:00:37.104511545 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -357,8 +357,11 @@ tf_waitid (void *arg)
       exit (0);
     }
 
+#ifndef WEXITED
+# define WEXITED 0
+#endif
   siginfo_t si;
-  int s = waitid (P_PID, pid, &si, 0);
+  int s = waitid (P_PID, pid, &si, WEXITED);
 
   printf ("%s: waitid returns with %d (%s)\n", __FUNCTION__, s,
 	  strerror (errno));

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix linuxthreads/tst-cancel{[45],-static}
  2004-09-04  8:05 [PATCH] Fix linuxthreads/tst-cancel{[45],-static} Jakub Jelinek
@ 2004-09-07 21:36 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2004-09-07 21:36 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Ulrich Drepper, Glibc hackers

> Hi!
> 
> LinuxThreads needs similar treatment as NPTL.
> 
> 2004-09-04  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.

I've put this in.


Thanks,
Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-07 21:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-04  8:05 [PATCH] Fix linuxthreads/tst-cancel{[45],-static} Jakub Jelinek
2004-09-07 21:36 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).