Messages in this thread | | | Date | Mon, 02 Feb 2009 12:17:51 -0800 | From | Ulrich Drepper <> | Subject | Re: main thread pthread_exit/sys_exit bug! |
| |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Oleg Nesterov wrote: > I am worried this patch can confuse the user-space. Because, when > the main thread does sys_exit(), the user-space has all rights > to assume it exits ;) But with this patch the main thread will > continue to handle the signals until the while group exits, I'm > afraid libpthread.so won't be happy.
I haven't looked at the patch nor tried it.
If the patch changes the behavior that the main thread, after calling sys_exit, still react to signals sent to this thread or to the process as a whole, then the patch is wrong. The userlevel context of the thread is not usable anymore. It will have run all kinds of destructors. The current behavior is AFAIK that the main thread won't react to any signal anymore. That is absolutely required.
- -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkmHVO8ACgkQ2ijCOnn/RHTJvwCgodxkT+mg0tmrnlhf/IP8hUQc RYIAn0YC7pTjPHHZa7kmvYSyu/Zw5IIT =ehdX -----END PGP SIGNATURE----- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |