matrix-org / dendron

Dendron was an experimental Matrix homeserver, succeeded by Dendrite.
35 stars 9 forks source link

Make sure that the child processes shutdown. #26

Closed NegativeMjark closed 8 years ago

NegativeMjark commented 8 years ago

Use defer to ensure that the child processes get told to shutdown. Ensure that dendron will call the deferred cleanup functions when it receives signals like SIGINT and SIGTERM by handling those signals and cleanly exiting main when they occur. Also shutdown dendron if any of the child processes terminate.

kegsay commented 8 years ago

LGTM aside from comments.

kegsay commented 8 years ago

LGTM