Skip to content

Commit

Permalink
Set stderr to be unbuffered unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
nojb committed Jul 25, 2021
1 parent def4f98 commit 5b34e82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/stdlib.ml
Expand Up @@ -317,10 +317,8 @@ let stdin = open_descriptor_in 0
let stdout = open_descriptor_out 1
let stderr = open_descriptor_out 2

external isatty : out_channel -> bool = "caml_sys_isatty"

let () =
if isatty stderr then set_channel_unbuffered stderr true
set_channel_unbuffered stderr true

(* General output functions *)

Expand Down

0 comments on commit 5b34e82

Please sign in to comment.