diff options
author | rtm <rtm> | 2006-07-29 09:35:02 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-07-29 09:35:02 +0000 |
commit | 32630628a996e29018641af262272339ed6fef88 (patch) | |
tree | 73c9a7dee75f96c0ce0e9c804d379dd60bf254b4 /fd.c | |
parent | e46fb46fcf4302bf5ed913101c5c7b510fe03ad4 (diff) | |
download | xv6-labs-32630628a996e29018641af262272339ed6fef88.tar.gz xv6-labs-32630628a996e29018641af262272339ed6fef88.tar.bz2 xv6-labs-32630628a996e29018641af262272339ed6fef88.zip |
open()
Diffstat (limited to 'fd.c')
-rw-r--r-- | fd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -86,6 +86,8 @@ fd_close(struct fd *fd) if(--fd->ref == 0){ if(fd->type == FD_PIPE){ pipe_close(fd->pipe, fd->writeable); + } else if(fd->type == FD_FILE){ + idecref(fd->ip); } else { panic("fd_close"); } |