-
Notifications
You must be signed in to change notification settings - Fork 34
doc: Add comments for socket descriptor handling when forking #108
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
Merged
Conversation
This file contains hidden or 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
Code review ACK b56bf21 Separately, it looks like there is also a potential leak in that function because both socketpair descriptors will be leaked if fork() fails. But probably this is not a serious issue because if fork() fails, something is already very wrong and the process might be to exit anyway. |
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 9, 2024
…nd cmake headers target This update brings in the following changes: bitcoin-core/libmultiprocess#105 types: Add Custom{Build,Read,Pass}Message hooks bitcoin-core/libmultiprocess#106 Bugfix: Clean up ThreadContext pointers when Connection is destroyed bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 10, 2024
…nd cmake headers target This update brings in the following changes: bitcoin-core/libmultiprocess#105 types: Add Custom{Build,Read,Pass}Message hooks bitcoin-core/libmultiprocess#106 Bugfix: Clean up ThreadContext pointers when Connection is destroyed bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 10, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
Sjors
pushed a commit
to Sjors/bitcoin
that referenced
this pull request
Sep 10, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
Sjors
pushed a commit
to Sjors/bitcoin
that referenced
this pull request
Sep 11, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
Sjors
pushed a commit
to Sjors/bitcoin
that referenced
this pull request
Sep 11, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 17, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 17, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 19, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 19, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
Sjors
pushed a commit
to Sjors/bitcoin
that referenced
this pull request
Sep 19, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
Sjors
pushed a commit
to Sjors/bitcoin
that referenced
this pull request
Sep 19, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
Sjors
pushed a commit
to Sjors/bitcoin
that referenced
this pull request
Sep 20, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 24, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
ryanofsky
added a commit
to ryanofsky/bitcoin
that referenced
this pull request
Sep 24, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
m3dwards
pushed a commit
to m3dwards/bitcoin
that referenced
this pull request
Oct 3, 2024
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
janus
pushed a commit
to BitgesellOfficial/bitgesell
that referenced
this pull request
Jan 19, 2025
This update brings in the following changes: bitcoin-core/libmultiprocess#107 example: Remove manual client adding bitcoin-core/libmultiprocess#108 doc: Add comments for socket descriptor handling when forking bitcoin-core/libmultiprocess#109 example: Add missing thread.join() call so example can exit cleanly bitcoin-core/libmultiprocess#110 cmake: add target_capnp_sources headers target
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I find logic around forking child processes always a bit confusing, hopefully these comments can make it a bit easier for a future reader.