This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18135] New: setcontext should call phtread_exit after last context.
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 16 Mar 2015 20:24:39 +0000
- Subject: [Bug libc/18135] New: setcontext should call phtread_exit after last context.
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18135
Bug ID: 18135
Summary: setcontext should call phtread_exit after last
context.
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: carlos at redhat dot com
CC: drepper.fsp at gmail dot com
The POSIX standard says:
~~~
If the uc_link member of the ucontext_t structure pointed to by
the ucp argument is equal to 0, then this context is the main
context, and the thread will exit when this context returns.
~~~
The "thread will exit" implies the standard is indicating that pthread_exit
should be called.
At present all implementations in glibc call exit().
--
You are receiving this mail because:
You are on the CC list for the bug.