Whamcloud - gitweb
b=19860
authorgreen <green>
Thu, 23 Jul 2009 19:19:37 +0000 (19:19 +0000)
committergreen <green>
Thu, 23 Jul 2009 19:19:37 +0000 (19:19 +0000)
r=adilger,shadow

get rid of ptlrpc_daemonize
remove unneeded exports

lnet/libcfs/linux/linux-prim.c

index d5fef80..ea8ca00 100644 (file)
@@ -61,14 +61,7 @@ void cfs_daemonize(char *str) {
         unsigned long flags;
 
         lock_kernel();
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,63))
         daemonize(str);
-#else
-        daemonize();
-        exit_files(current);
-        reparent_to_init();
-        snprintf (current->comm, sizeof (current->comm), "%s", str);
-#endif
         SIGNAL_MASK_LOCK(current, flags);
         sigfillset(&current->blocked);
         RECALC_SIGPENDING;