Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2004-01-20  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/pthread/createthread.c (create_thread): Don't add
	CLONE_DETACHED bit if it is not necessary.
  • Loading branch information
Ulrich Drepper committed Jan 21, 2004
1 parent f3484f2 commit 5673ccc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2004-01-20 Ulrich Drepper <drepper@redhat.com>

* sysdeps/pthread/createthread.c (create_thread): Don't add
CLONE_DETACHED bit if it is not necessary.

2004-01-16 Ulrich Drepper <drepper@redhat.com>

* pthread_getattr_np.c: Include ldsodefs.h.
Expand Down
7 changes: 5 additions & 2 deletions nptl/sysdeps/pthread/createthread.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -174,7 +174,10 @@ create_thread (struct pthread *pd, const struct pthread_attr *attr,
is sent. */
int clone_flags = (CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGNAL
| CLONE_SETTLS | CLONE_PARENT_SETTID
| CLONE_CHILD_CLEARTID | CLONE_DETACHED | CLONE_SYSVSEM
| CLONE_CHILD_CLEARTID | CLONE_SYSVSEM
#if __ASSUME_NO_CLONE_DETACHED == 0
| CLONE_DETACHED
#endif
| 0);

/* If the newly created threads has to be started stopped since we
Expand Down

0 comments on commit 5673ccc

Please sign in to comment.