Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Node.js: Handle main loop interruption #1946

Conversation

gabrielschulhof
Copy link

Also consolidates test helper files into a single directory.

Signed-off-by: Gabriel Schulhof gabriel.schulhof@intel.com

This does not yet include the signal handler chaining discussed in #1566 (comment), because this is a real issue causing busy loops sometimes.

@gabrielschulhof gabrielschulhof force-pushed the nodejs-handle-nodejs-exit-simple branch from 780158d to 52268e6 Compare April 27, 2016 21:54
@gabrielschulhof
Copy link
Author

@nagineni this should make soletta handles behave just like node.js handles. So, if you don't clean them up and you handle SIGINT, it will hang.

The only remaining shortcoming is that if you add a SIGINT handler before you require( "bindings" )( "soletta" ); then it won't fire. That's #1566, which I'm also working on.

Does this fix your issue?

@gabrielschulhof gabrielschulhof changed the title Node.js: Handle main loop interruption WIP: Node.js: Handle main loop interruption Apr 27, 2016
@gabrielschulhof gabrielschulhof force-pushed the nodejs-handle-nodejs-exit-simple branch from 52268e6 to 94bbb7b Compare April 28, 2016 11:11
Also consolidates test helper files into a single directory.

Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
@gabrielschulhof gabrielschulhof force-pushed the nodejs-handle-nodejs-exit-simple branch from 94bbb7b to db39b12 Compare April 28, 2016 11:12
@gabrielschulhof gabrielschulhof changed the title WIP: Node.js: Handle main loop interruption Node.js: Handle main loop interruption Apr 28, 2016
@nagineni
Copy link

nagineni commented May 2, 2016

@gabrielschulhof Tested this locally and it works as you mentioned. Cleaning up soletta handles in SIGINT handler makes the process exit as expected.

@gabrielschulhof gabrielschulhof deleted the nodejs-handle-nodejs-exit-simple branch May 3, 2016 06:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants