-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent toctou by locking children list before checking closing
locking the list for the whole spawn guarantees that either a child will be successfully spawned before the manager is closed, or that no child can be spawned. since setting is_closing must happen at the time of mutating children, we consolidate into a single Mutex
- Loading branch information
Alexander Lyon
authored and
Alexander Lyon
committed
Sep 12, 2023
1 parent
0ec3893
commit 2fe48ed
Showing
1 changed file
with
20 additions
and
22 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