summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-23 14:40:30 +0000
committerrsc <rsc>2007-08-23 14:40:30 +0000
commitb1fb19b6df716c0ad30b05236c356bc34457c70b (patch)
treee6b9c73718a4f4bfe233b2b298ee082aef42f98e /proc.h
parent3a057d12aed586b01d808d55a8b4c700523bbd95 (diff)
downloadxv6-labs-b1fb19b6df716c0ad30b05236c356bc34457c70b.tar.gz
xv6-labs-b1fb19b6df716c0ad30b05236c356bc34457c70b.tar.bz2
xv6-labs-b1fb19b6df716c0ad30b05236c356bc34457c70b.zip
Use parent pointer instead of ppid.
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h2
1 files changed, 1 insertions, 1 deletions
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