From: Oleg Nesterov Date: Mon, 2 Mar 2009 21:58:45 +0000 (+0100) Subject: copy_process: fix CLONE_PARENT && parent_exec_id interaction X-Git-Tag: v2.6.29-rc8~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d5516cbb9daf7d0e342a2e3b0fc6f8c39a81205;p=pandora-kernel.git copy_process: fix CLONE_PARENT && parent_exec_id interaction CLONE_PARENT can fool the ->self_exec_id/parent_exec_id logic. If we re-use the old parent, we must also re-use ->parent_exec_id to make sure exit_notify() sees the right ->xxx_exec_id's when the CLONE_PARENT'ed task exits. Also, move down the "p->parent_exec_id = p->self_exec_id" thing, to place two different cases together. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Cc: Andrew Morton Cc: David Howells Cc: Serge E. Hallyn Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed