|
@@ -711,8 +711,11 @@ static struct task_struct *find_new_reaper(struct task_struct *father)
|
|
|
|
|
|
if (unlikely(pid_ns->child_reaper == father)) {
|
|
if (unlikely(pid_ns->child_reaper == father)) {
|
|
write_unlock_irq(&tasklist_lock);
|
|
write_unlock_irq(&tasklist_lock);
|
|
- if (unlikely(pid_ns == &init_pid_ns))
|
|
|
|
- panic("Attempted to kill init!");
|
|
|
|
|
|
+ if (unlikely(pid_ns == &init_pid_ns)) {
|
|
|
|
+ panic("Attempted to kill init! exitcode=0x%08x\n",
|
|
|
|
+ father->signal->group_exit_code ?:
|
|
|
|
+ father->exit_code);
|
|
|
|
+ }
|
|
|
|
|
|
zap_pid_ns_processes(pid_ns);
|
|
zap_pid_ns_processes(pid_ns);
|
|
write_lock_irq(&tasklist_lock);
|
|
write_lock_irq(&tasklist_lock);
|