Skip to content

Commit

Permalink
Restore STDIN|OUT|ERR blocking state on exit (crystal-lang#5802)
Browse files Browse the repository at this point in the history
  • Loading branch information
bew authored and chris-huxtable committed Apr 6, 2018
1 parent 0dd5804 commit 992717d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kernel.cr
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def exit(status = 0) : NoReturn
AtExitHandlers.run status
STDOUT.flush
STDERR.flush
Crystal.restore_blocking_state
Process.exit(status)
end

Expand Down

0 comments on commit 992717d

Please sign in to comment.