This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/9804] pthread_exit from main thread: poor semantics, potential tty session lockup.


------- Additional Comments From kkylheku at gmail dot com  2009-02-01 22:10 -------
Created an attachment (id=3702)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3702&action=view)
Kernel patch to fix main thread pthread_exit problem.

Causes the single-thread exit system call (sys_exit) to detect that it's the
main thread of a thread group, and perform a wait for the other threads to die
before proceeding with its own exit. During this wait, signals are handled
properly by returning from sys_exit with ERESTARTSYS (not seen in user space).
Consequently, POSIX job control now works properly on a process whose main
thread has called pthread_exit, but which still has other threads running.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9804

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]