From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1439 invoked by alias); 4 Sep 2004 08:05:58 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 1423 invoked from network); 4 Sep 2004 08:05:57 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 4 Sep 2004 08:05:57 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i845lu3j012625; Sat, 4 Sep 2004 07:47:56 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i845lurS012623; Sat, 4 Sep 2004 07:47:56 +0200 Date: Sat, 04 Sep 2004 08:05:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Fix linuxthreads/tst-cancel{[45],-static} Message-ID: <20040904054756.GO30497@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2004-09/txt/msg00014.txt.bz2 Hi! LinuxThreads needs similar treatment as NPTL. 2004-09-04 Jakub Jelinek * 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 , 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