From b1fb19b6df716c0ad30b05236c356bc34457c70b Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 23 Aug 2007 14:40:30 +0000 Subject: Use parent pointer instead of ppid. --- proc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc.h') diff --git a/proc.h b/proc.h index 01bff4a..9750c15 100644 --- a/proc.h +++ b/proc.h @@ -33,7 +33,7 @@ struct proc { char *kstack; // Bottom of kernel stack for this process enum proc_state state; // Process state int pid; // Process ID - int ppid; // Parent pid + struct proc *parent; // Parent process void *chan; // If non-zero, sleeping on chan int killed; // If non-zero, have been killed struct file *ofile[NOFILE]; // Open files -- cgit v1.2.3