Fix Bug: Free all entries in the fd hashtable when the process exits, w/ E

This commit is contained in:
sBubshait
2024-11-13 17:42:25 +00:00
parent d890c2353e
commit 4f586bb4da
3 changed files with 20 additions and 0 deletions

View File

@@ -14,5 +14,6 @@ void syscall_init (void);
unsigned fd_hash (const struct hash_elem *element, void *aux);
bool fd_less (const struct hash_elem *a, const struct hash_elem *b, void *aux);
void fd_cleanup (struct hash_elem *e, void *aux);
#endif /* userprog/syscall.h */