patch-2.4.3 linux/fs/nfsd/nfssvc.c
Next file: linux/fs/nfsd/vfs.c
Previous file: linux/fs/nfsd/nfsproc.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Mar 15 09:56:07 2001
- Orig file:
v2.4.2/linux/fs/nfsd/nfssvc.c
- Orig date:
Wed Feb 21 18:20:40 2001
diff -u --recursive --new-file v2.4.2/linux/fs/nfsd/nfssvc.c linux/fs/nfsd/nfssvc.c
@@ -149,12 +149,8 @@
/* Lock module and set up kernel thread */
MOD_INC_USE_COUNT;
lock_kernel();
- exit_mm(current);
- current->session = 1;
- current->pgrp = 1;
+ daemonize();
sprintf(current->comm, "nfsd");
- current->fs->umask = 0;
-
current->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY;
nfsdstats.th_cnt++;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)