diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-09-05 17:18:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-09-05 17:18:23 +0000 |
commit | b051fc4438e7e7ef248a1d03a9b2bd397bc916f3 (patch) | |
tree | 0d6d7a6030bafb9f43c5cc2f0a32a1d49a0e7626 /nptl/descr.h | |
parent | d052233c6cc886f472736f3cd8f79e4ecf6e0c89 (diff) | |
download | glibc-b051fc4438e7e7ef248a1d03a9b2bd397bc916f3.tar glibc-b051fc4438e7e7ef248a1d03a9b2bd397bc916f3.tar.gz glibc-b051fc4438e7e7ef248a1d03a9b2bd397bc916f3.tar.bz2 glibc-b051fc4438e7e7ef248a1d03a9b2bd397bc916f3.zip |
[BZ #3124]
2006-09-05 Ulrich Drepper <drepper@redhat.com>
[BZ #3124]
* descr.h (struct pthread): Add parent_cancelhandling.
* sysdeps/pthread/createthread.c (create_thread): Pass parent
cancelhandling value to child.
* pthread_create.c (start_thread): If parent thread was canceled
reset the SIGCANCEL mask.
* Makefile (tests): Add tst-cancel25.
* tst-cancel25.c: New file.
Diffstat (limited to 'nptl/descr.h')
-rw-r--r-- | nptl/descr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/descr.h b/nptl/descr.h index 7acd2f4f22..b9b9ed7b98 100644 --- a/nptl/descr.h +++ b/nptl/descr.h @@ -296,6 +296,10 @@ struct pthread /* True if thread must stop at startup time. */ bool stopped_start; + /* The parent's cancel handling at the time of the pthread_create + call. This might be needed to undo the effects of a cancellation. */ + int parent_cancelhandling; + /* Lock to synchronize access to the descriptor. */ lll_lock_t lock; |