Thanks to visit codestin.com
Credit goes to github.com

Skip to content

core(node) Move to setting exitCode vs calling exit(code)#1

Closed
EugeneHlushko wants to merge 1 commit intoschleyfox:masterfrom
EugeneHlushko:core/node
Closed

core(node) Move to setting exitCode vs calling exit(code)#1
EugeneHlushko wants to merge 1 commit intoschleyfox:masterfrom
EugeneHlushko:core/node

Conversation

@EugeneHlushko
Copy link

We had an issue with process.exit(code) at webpack in the past where Node.js did not exit itself after the process.exit(1) was called.

https://nodejs.org/dist/latest-v9.x/docs/api/process.html#process_process_exit_code

Rather than calling process.exit() directly, the code should set the process.exitCode and allow the process to exit naturally by avoiding scheduling any additional work for the event loop.

For details you can see old PR with issue.
webpack/webpack#6193

@EugeneHlushko EugeneHlushko deleted the core/node branch September 17, 2018 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant