Skip to content

fix(process): gracefully exit process#26

Merged
NoahDragon merged 1 commit intomasterfrom
gracefully-exit-process
Jan 17, 2018
Merged

fix(process): gracefully exit process#26
NoahDragon merged 1 commit intomasterfrom
gracefully-exit-process

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