-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds an intermediate stage in closing an fd. (#441)
* Adds an intermediate stage in closing an fd. Adds a new bit to mark an fd being in shutdown. This is a state during close that marks the fd as being bad, with all kernel calls (from other threads) returning EBADF if they refer to this fd. At the same time the fd is not marked as free for reuse by another open. This fixes the race condition in #440 * Fix bug when dev->close returns an error.
- Loading branch information
1 parent
83a76c3
commit abba7dd
Showing
3 changed files
with
5 additions
and
1 deletion.
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