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

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

Advertisement

Kernel v2.1.101 /kernel/kmod.c

Filename:/kernel/kmod.c
Lines Added:2
Lines Deleted:3
Also changed in: (Previous) 2.1.99  2.1.98  2.1.96  2.1.94  2.1.91  2.1.90 
(Following) 2.1.105  2.1.106  2.1.107  2.1.109  2.1.111  2.1.112 

Location
[  2.1.101
  [  kernel
     o  kmod.c

Patch

diff -u --recursive --new-file v2.1.100/linux/kernel/kmod.c linux/kernel/kmod.c
--- v2.1.100/linux/kernel/kmod.c   Sat May  2 14:19:54 1998
+++ linux/kernel/kmod.c   Fri May  8 15:58:13 1998
@@ -86,13 +86,12 @@
    int pid;
    int waitpid_result;
 
-   pid = kernel_thread(exec_modprobe, (void*) module_name,
-             CLONE_FS | SIGCHLD);
+   pid = kernel_thread(exec_modprobe, (void*) module_name, CLONE_FS);
    if (pid < 0) {
       printk(KERN_ERR "kmod: fork failed, errno %d\n", -pid);
       return pid;
    }
-   waitpid_result = waitpid(pid, NULL, 0);
+   waitpid_result = waitpid(pid, NULL, __WCLONE);
    if (waitpid_result != pid) {
       printk (KERN_ERR "kmod: waitpid(%d,NULL,0) failed, returning %d.\n",
          pid, waitpid_result);


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