-
Notifications
You must be signed in to change notification settings - Fork 88
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
Subscribing to SIGINT events etc. handling CTRL+C in terminal #89
Comments
@AlexGustafsson , where is |
@epaminond no, it's a function written by me.
|
@AlexGustafsson , I've tried to reproduce it locally with node 8.9.3 and it seems to work fine (e.g. |
@AlexGustafsson , feel free to reopen it if you still face this issue. |
@epaminond Thank you for your help. I’ll see if it works for me in the coming days. |
The code
index.js:
The setup
Botpress: latest
Node: v7.7.4
OS: macOS 10.12.4-beta
Other: Using the Terminal app (default macOS command prompt)
The problem
When starting the project with
botpress start
and then trying to interrupt it withCTRL+C
theSIGINT
event is correctly thrown. However, the program terminates right after 'Initiating graceful shutdown' has been written to the screen. I've read about a dozen of examples on how to deal withCTRL+C
and the code I've written doesn't seem to be wrong. Is there something I should know about how Botpress handles SIGINT, etc.? (I could not find any such event handlers in the source).Note: debugging shows that
broadcast()
is never calledThe text was updated successfully, but these errors were encountered: