patch-2.4.0-test11 linux/kernel/exit.c
Next file: linux/kernel/fork.c
Previous file: linux/kernel/context.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Fri Nov 17 16:44:55 2000
- Orig file:
v2.4.0-test10/linux/kernel/exit.c
- Orig date:
Sun Oct 8 10:50:38 2000
diff -u --recursive --new-file v2.4.0-test10/linux/kernel/exit.c linux/kernel/exit.c
@@ -467,6 +467,14 @@
goto fake_volatile;
}
+NORET_TYPE void up_and_exit(struct semaphore *sem, long code)
+{
+ if (sem)
+ up(sem);
+
+ do_exit(code);
+}
+
asmlinkage long sys_exit(int error_code)
{
do_exit((error_code&0xff)<<8);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)