Name

tracehook_report_death — task is dead and ready to be reaped

Synopsis

void tracehook_report_death (struct task_struct * task,
 int signal,
 void * death_cookie,
 int group_dead);
 

Arguments

task

current task now exiting

signal

return value from tracheook_notify_death

death_cookie

value passed back from tracehook_notify_death

group_dead

nonzero if this was the last thread in the group to die

Description

Thread has just become a zombie or is about to self-reap. If positive, signal is the signal number just sent to the parent (usually SIGCHLD). If signal is DEATH_REAP, this thread will self-reap. If signal is DEATH_DELAYED_GROUP_LEADER, this is a delayed_group_leader zombie. The death_cookie was passed back by tracehook_notify_death.

If normal reaping is not inhibited, task->exit_state might be changing in parallel.

Called without locks.