Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(monika): _kern_close double close
Fixed a bug when `_kern_close` translates into two host `close` syscalls when the file descriptor refers to a directory. This bug appear harmless for single-threaded programs but affects programs like `launch_daemon` which opens a directory on both the launcher thread and the main worker thread. The data race of one thread closing a fd a second time right after the other thread opening a new fd makes those programs think that there was actually an error with the new fd. After this fix `launch_daemon` should reliably launch on `hyclone_server` startup. There should be no more "id: cannot find name for user ID 0" errors on HyClone.
- Loading branch information
1 parent
40c7939
commit 00d7f7f
Showing
4 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters