Skip to content
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(process): gracefully exit process #26

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jan 7, 2018

As is noted on https://nodejs.org/api/process.html#process_process_exit_code

In most situations, it is not actually necessary to call process.exit() explicitly.

It is problematic to print stdout and instruct process.exit() call. Now we set process.exitCode to allow the process exit naturally

As is noted on https://nodejs.org/api/process.html#process_process_exit_code

> In most situations, it is not actually necessary to call process.exit() explicitly.

It is problematic to print stdout and instruct process.exit() call. Now we set process.exitCode to allow the process exit naturally
@JLHwung JLHwung requested a review from tommy351 January 7, 2018 03:45
@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.816% when pulling 62aa265 on gracefully-exit-process into 89145a5 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.816% when pulling 62aa265 on gracefully-exit-process into 89145a5 on master.

@NoahDragon NoahDragon merged commit f2f7364 into master Jan 17, 2018
@NoahDragon NoahDragon deleted the gracefully-exit-process branch January 17, 2018 16:51
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.

3 participants