From ed7971b5c31c9c1cc1ae7788e3e2b384f02dbe2f Mon Sep 17 00:00:00 2001 From: Jason Mulligan <jason.mulligan@avoidwork.com> Date: Mon, 10 Apr 2017 07:24:22 -0400 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4fc73b4..9cc423b 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,12 @@ Broadcasts a message to the `Worker` #### terminate() Terminates the `Worker` +## FAQ +1. I have an orphaned child process that lives on past the parent process' lifespan + * Most likely a `SIGTERM` is not reaching the child process +2. How do insure all process are terminated? + * In your core script register a listener for `SIGTERM` via `process.on()` which terminates (all) worker process(es) and then gracefully shutdowns via `process.exit(0);` + ## License Copyright (c) 2015 Jason Mulligan Licensed under the BSD-3 license -- GitLab