]> git.baikalelectronics.ru Git - kernel.git/commit
make do_notify_parent() __must_check, update the callers
authorOleg Nesterov <oleg@redhat.com>
Wed, 22 Jun 2011 21:09:09 +0000 (23:09 +0200)
committerOleg Nesterov <oleg@redhat.com>
Mon, 27 Jun 2011 18:30:09 +0000 (20:30 +0200)
commit066581f6225da68c1f04d4c217ff519b023aa142
tree61baa72f24bb12eadd6956fb0abeb7eabda46b88
parent3017e77bec70b8cdba52895071662ceffd0304af
make do_notify_parent() __must_check, update the callers

Change other callers of do_notify_parent() to check the value it
returns, this makes the subsequent task_detached() unnecessary.
Mark do_notify_parent() as __must_check.

Use thread_group_leader() instead of !task_detached() to check
if we need to notify the real parent in wait_task_zombie().

Remove the stale comment in release_task(). "just for sanity" is
no longer true, we have to set EXIT_DEAD to avoid the races with
do_wait().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
include/linux/sched.h
kernel/exit.c