diff --git a/README.md b/README.md index 9cc423bafdd50118ef1b2fbc8078ae8d0e4573ef..16187068f7e6fe384e2604a18674c50bc9be8780 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,11 @@ 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 + * Most likely a `SIGTERM` or `SIGINT` 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);` + * In your core script register a listener for `SIGTERM` or `SIGINT` via `process.on()` which terminates (all) worker process(es) and then gracefully shutdowns via `process.exit(0);` +3. Why `SIGTERM` or `SIGINT`? + * Unix/BSD will work with `SIGTERM`, but if you also need to support Windows use `SIGINT` ## License Copyright (c) 2015 Jason Mulligan