Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.4.9 /kernel/exit.c

Filename:/kernel/exit.c
Lines Added:4
Lines Deleted:3
Also changed in: (Previous) 2.4.9-pre4  2.4.9-pre2  2.4.9-pre3  2.4.9-pre1  2.4.8-ac4  2.4.8-ac5 
(Following) 2.4.9-ac11  2.4.9-ac12  2.4.9-ac13  2.4.9-ac14  2.4.9-ac15  2.4.9-ac16 

Location
[  2.4.9
  [  kernel
     o  exit.c

Patch

diff -u --recursive --new-file v2.4.8/linux/kernel/exit.c linux/kernel/exit.c
--- v2.4.8/linux/kernel/exit.c   Fri May  4 14:44:06 2001
+++ linux/kernel/exit.c   Sun Aug 12 10:52:29 2001
@@ -9,6 +9,7 @@
 #include <linux/interrupt.h>
 #include <linux/smp_lock.h>
 #include <linux/module.h>
+#include <linux/completion.h>
 #include <linux/tty.h>
 #ifdef CONFIG_BSD_PROCESS_ACCT
 #include <linux/acct.h>
@@ -473,10 +474,10 @@
    goto fake_volatile;
 }
 
-NORET_TYPE void up_and_exit(struct semaphore *sem, long code)
+NORET_TYPE void complete_and_exit(struct completion *comp, long code)
 {
-   if (sem)
-      up(sem);
+   if (comp)
+      complete(comp);
    
    do_exit(code);
 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.