-
Notifications
You must be signed in to change notification settings - Fork 5k
spawnSync: make signal-forwarding register/unregister safe for concurrent callers #30956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
5da5c9b
4022a11
77baf7e
06e9176
ed97b02
79f6fd1
572391f
da8ae77
b4b612b
63eb355
c1d46cb
5f1f951
289bb83
be93485
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,8 @@ | |
| //! `bun_runtime` re-exports them. The only non-leaf dependencies are | ||
| //! `bun_io` (`FilePoll`/`KeepAlive`/`EventLoopCtx`), `bun_ptr` | ||
| //! (`ThreadSafeRefCount`), `bun_io` (`BufferedWriter`), `bun_event_loop`, | ||
| //! `bun_threading`, and `bun_crash_handler` — none of which depend back on | ||
| //! this crate, so no cycle. | ||
| //! and `bun_threading` — none of which depend back on this crate, so no | ||
| //! cycle. | ||
|
Comment on lines
+12
to
+13
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you need a paragraph-long comment to justify why the workaround is OK, the code is wrong — fix the code
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the pre-existing crate doc listing |
||
|
|
||
| use core::ffi::c_char; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you need a paragraph-long comment to justify why the workaround is OK, the code is wrong — fix the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-existing header comment; the edit here only corrects a cross-reference that this PR made stale (it pointed at the Bun__currentSyncPID note, which now says the opposite). It documents why the file has no locking, which matters more now that the sibling signal-forwarding code does.