From 93df14eee81cf5514fe96e9143201a75d9391c7b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 7 Aug 2012 23:03:35 +0000 Subject: Remove some pre-2.6.16 Linux kernel conditionals. --- nptl/ChangeLog | 5 +++++ nptl/sysdeps/pthread/createthread.c | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'nptl') diff --git a/nptl/ChangeLog b/nptl/ChangeLog index bf9bf926b6..1f0d9256e9 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2012-08-07 Joseph Myers + + * sysdeps/pthread/createthread.c (create_thread) + [!__ASSUME_NO_CLONE_DETACHED]: Remove conditional code. + 2012-08-03 Joseph Myers * nptl-init.c (sigcancel_handler) [__ASSUME_CORRECT_SI_PID]: Make diff --git a/nptl/sysdeps/pthread/createthread.c b/nptl/sysdeps/pthread/createthread.c index 3ead825354..d58f8fa455 100644 --- a/nptl/sysdeps/pthread/createthread.c +++ b/nptl/sysdeps/pthread/createthread.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002-2007, 2008, 2010 Free Software Foundation, Inc. +/* Copyright (C) 2002-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2002. @@ -179,18 +179,11 @@ create_thread (struct pthread *pd, const struct pthread_attr *attr, sys_exit() in the location pointed to by the seventh parameter to CLONE. - CLONE_DETACHED - No signal is generated if the thread exists and it is - automatically reaped. - The termination signal is chosen to be zero which means no signal is sent. */ int clone_flags = (CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGNAL | CLONE_SETTLS | CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID | CLONE_SYSVSEM -#if __ASSUME_NO_CLONE_DETACHED == 0 - | CLONE_DETACHED -#endif | 0); if (__builtin_expect (THREAD_GETMEM (THREAD_SELF, report_events), 0)) -- cgit 1.4.1