Re: [PATCH 1/2] copy_process: fix CLONE_PARENT && ->exit_signalinteraction

From: Roland McGrath
Date: Wed Feb 25 2009 - 15:02:23 EST


> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/