Messages in this thread | | | From | Roland McGrath <> | Subject | Re: [PATCH 1/2] copy_process: fix CLONE_PARENT && ->exit_signal interaction | Date | Wed, 25 Feb 2009 11:54:24 -0800 (PST) |
| |
> The task T has ->exit_signal != SIGCHLD, say, SIGHUP. It does > clone(CLONE_PARENT), copy_process() sets ->exit_signal = SIGHUP. > > T->parent exits, T is re-parented to /sbin/init, and its ->exit_signal > is changed to SIGCHLD.
I see. It's tempting to call this a reason to just use SIGCHLD instead of current->group_leader->exit_signal. Of course, this all really begs the question of who uses the case and what they want.
Thanks, Roland
| |