patch-2.4.5 linux/fs/proc/array.c
Next file: linux/fs/proc/base.c
Previous file: linux/fs/proc/Makefile
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri May 4 14:44:06 2001
- Orig file:
v2.4.4/linux/fs/proc/array.c
- Orig date:
Fri Apr 6 10:51:19 2001
diff -u --recursive --new-file v2.4.4/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -157,7 +157,7 @@
"Uid:\t%d\t%d\t%d\t%d\n"
"Gid:\t%d\t%d\t%d\t%d\n",
get_task_state(p),
- p->pid, p->p_opptr->pid, p->p_pptr->pid != p->p_opptr->pid ? p->p_pptr->pid : 0,
+ p->pid, p->pid ? p->p_opptr->pid : 0, 0,
p->uid, p->euid, p->suid, p->fsuid,
p->gid, p->egid, p->sgid, p->fsgid);
read_unlock(&tasklist_lock);
@@ -339,7 +339,7 @@
nice = task->nice;
read_lock(&tasklist_lock);
- ppid = task->p_opptr->pid;
+ ppid = task->pid ? task->p_opptr->pid : 0;
read_unlock(&tasklist_lock);
res = sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
%lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %ld %lu %lu %ld %lu %lu %lu %lu %lu \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)