Skip to content

Commit

Permalink
> run
Browse files Browse the repository at this point in the history
1911530
lighthouse
Linux VM-24-4-ubuntu 5.4.0-96-generic #109-Ubuntu SMP Wed Jan 12 16:49:16 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
 22:51:20 up 15 days,  5:24,  1 user,  load average: 0.32, 0.72, 1.10
b00a078c48fb42d026bdc81d8a00467867d89852
  • Loading branch information
ruichima authored and AnthonyHaozeZhu committed May 30, 2022
1 parent aabcd12 commit 92822dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nanos-lite/src/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ ssize_t fs_read(int fd, void *buf, size_t len){

int fs_close(int fd) {
assert(fd >= 0 && fd < NR_FILES);
file_table[fd].open_offset = 0;
return 0;
}

Expand Down

0 comments on commit 92822dd

Please sign in to comment.