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.
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 exitingmain
when they occur. Also shutdown dendron if any of the child processes terminate.