From 39593d2f1aab1355d61b75c041b31a88d2043a04 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 6 Sep 2006 18:38:56 +0000 Subject: struct fd -> struct file --- proc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index aa8bd8f..066ac77 100644 --- a/proc.c +++ b/proc.c @@ -125,9 +125,9 @@ copyproc(struct proc *p) // Copy file descriptors for(i = 0; i < NOFILE; i++){ - np->fds[i] = p->fds[i]; - if(np->fds[i]) - fd_incref(np->fds[i]); + np->ofile[i] = p->ofile[i]; + if(np->ofile[i]) + fd_incref(np->ofile[i]); } np->cwd = p->cwd; @@ -328,9 +328,9 @@ proc_exit(void) // Close all open files. for(fd = 0; fd < NOFILE; fd++){ - if(cp->fds[fd]){ - fd_close(cp->fds[fd]); - cp->fds[fd] = 0; + if(cp->ofile[fd]){ + fd_close(cp->ofile[fd]); + cp->ofile[fd] = 0; } } -- cgit v1.2.3