[Bug libc/18135] New: setcontext should call phtread_exit after last context.
carlos at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Mar 16 20:24:00 GMT 2015
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.
More information about the Glibc-bugs
mailing list