exit.c (eb55e716ac1aa0de13ef5abbf1479d995582d967) | exit.c (cead18552660702a4a46f58e65188fe5f36e9dfe) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/kernel/exit.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 */ 7 8#include <linux/mm.h> --- 877 unchanged lines hidden (view full) --- 886 pr_alert("Fixing recursive fault but reboot is needed!\n"); 887 futex_exit_recursive(tsk); 888 do_task_dead(); 889 } 890 891 do_exit(signr); 892} 893 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/kernel/exit.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 */ 7 8#include <linux/mm.h> --- 877 unchanged lines hidden (view full) --- 886 pr_alert("Fixing recursive fault but reboot is needed!\n"); 887 futex_exit_recursive(tsk); 888 do_task_dead(); 889 } 890 891 do_exit(signr); 892} 893 |
894void complete_and_exit(struct completion *comp, long code) 895{ 896 if (comp) 897 complete(comp); 898 899 do_exit(code); 900} 901EXPORT_SYMBOL(complete_and_exit); 902 | |
903SYSCALL_DEFINE1(exit, int, error_code) 904{ 905 do_exit((error_code&0xff)<<8); 906} 907 908/* 909 * Take down every thread in the group. This is called by fatal signals 910 * as well as by sys_exit_group (below). --- 921 unchanged lines hidden --- | 894SYSCALL_DEFINE1(exit, int, error_code) 895{ 896 do_exit((error_code&0xff)<<8); 897} 898 899/* 900 * Take down every thread in the group. This is called by fatal signals 901 * as well as by sys_exit_group (below). --- 921 unchanged lines hidden --- |