patch-2.1.90 linux/fs/proc/base.c
Next file: linux/fs/proc/fd.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Wed Mar 11 15:45:53 1998
- Orig file:
v2.1.89/linux/fs/proc/base.c
- Orig date:
Mon Jan 12 14:46:24 1998
diff -u --recursive --new-file v2.1.89/linux/fs/proc/base.c linux/fs/proc/base.c
@@ -60,12 +60,14 @@
int pid = inode->i_ino >> 16;
int ino = inode->i_ino & 0xffff;
+ read_lock(&tasklist_lock);
if (fill && (p = find_task_by_pid(pid)) != NULL) {
if (p->dumpable || ino == PROC_PID_INO) {
inode->i_uid = p->euid;
inode->i_gid = p->gid;
}
}
+ read_unlock(&tasklist_lock);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov