-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: killing the process hangs issue #169
Conversation
Codecov ReportBase: 92.36% // Head: 92.36% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
=======================================
Coverage 92.36% 92.36%
=======================================
Files 9 9
Lines 262 262
=======================================
Hits 242 242
Misses 20 20 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Steps to reproduce:
|
Video: foo-2023-02-04_09.37.53.mp4 |
1fb7230
to
14edff9
Compare
Changed to node 16x , deleted and re-generated |
@lance was there a reason for choosing the |
Nothing other than, "it seems to work as expected" 🤣 |
@@ -40,7 +40,7 @@ async function runServer(file) { | |||
console.error(code); | |||
throw TypeError(`Cannot find Invokable function 'handle' in ${code}`); | |||
} | |||
ON_DEATH(_ => { | |||
nodeCleanup(_ => { | |||
server.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only thing that needs to be added is a process.exit(0)
after the server.close
instead of changing the module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@helio-frota can you give this a try in your test scenario?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lholmquist @lance that works thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting it has a little bit different behavior we need 2 control+c but works.. [ maybe a delay thing happening don't know ]
I saw that other node.js tools also need 2 control+c , sometimes
PR sent #172 |
Related to #120