Skip to content

Commit

Permalink
Use exit on Windows to ensure stdio is flushed
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdoe committed Jan 31, 2015
1 parent a5bca1a commit c378c98
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/cli/argv.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ module.exports = (argv) ->
, (err) ->
if err
console.error err
process.exit 1
exit 1
else
process.exit exitCode
exit exitCode

exit = (code = 0) ->
if process.platform is 'win32'
require('exit') code
else
process.exit code

0 comments on commit c378c98

Please sign in to comment.