Skip to content
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

Backport #311 #332

Merged
merged 1 commit into from
Aug 31, 2016
Merged

Backport #311 #332

merged 1 commit into from
Aug 31, 2016

Conversation

jrick
Copy link
Member

@jrick jrick commented Aug 31, 2016

This is a backport of PR #311 for the release-0.4.0 branch.

Rewrite startup/shutdown logic to simplify shutdown signaling.  All
cleanup is now run from deferred functions in the main function.

Add two new config options to set the read and write ends of a pair of
pipes.  This is used as a simple mechanism for a parent process to
communicate with, observe, and manage the lifetime of a child dcrd
process.  When the RX (read end) pipe is closed, clean shutdown
automatically begins.

Add a new flag --lifetimeevents to create and send lifetime event
notifications over the TX (write end) pipe during bringup and
shutdown.  This allows the parent process to observe which subsystems
are currently starting, running, and stopping.

Fixes btcsuite#297.
Fixes btcsuite#298.
@alexlyp
Copy link
Member

alexlyp commented Aug 31, 2016

ok

1 similar comment
@marcopeereboom
Copy link
Member

ok

@jrick jrick merged commit 0d8104b into decred:release-0.4.0 Aug 31, 2016
@jrick jrick deleted the pipeipc_old branch August 31, 2016 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants