-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cleanup temporary directory after shutting down
workerd
- Loading branch information
Showing
3 changed files
with
78 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"miniflare": patch | ||
--- | ||
|
||
fix: cleanup temporary directory after shutting down `workerd` | ||
|
||
Previously on exit, Miniflare would attempt to remove its temporary directory | ||
before shutting down `workerd`. This could lead to `EBUSY` errors on Windows. | ||
This change ensures we shutdown `workerd` before removing the directory. | ||
Since we can only clean up on a best effort basis when exiting, it also catches | ||
any errors thrown when removing the directory, in case the runtime doesn't | ||
shutdown fast enough. |
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