Skip to content

Commit

Permalink
Restore STDIN|OUT|ERR blocking state on exit (#5802)
Browse files Browse the repository at this point in the history
  • Loading branch information
bew authored and RX14 committed Mar 11, 2018
1 parent 92c3d42 commit e8916bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kernel.cr
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 e8916bc

Please sign in to comment.