We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01818a1 + a140987 commit 3942badCopy full SHA for 3942bad
CHANGES.md
@@ -10,6 +10,8 @@
10
11
#### Fixed
12
13
+- Fix accidental redirect of stderr to stdout (#343, @Leonidas-from-XIV)
14
+
15
#### Removed
16
17
#### Security
lib/top/mdx_top.ml
@@ -22,7 +22,7 @@ type directive = Directory of string | Load of string
22
23
let redirect ~f =
24
let stdout_backup = Unix.dup Unix.stdout in
25
- let stderr_backup = Unix.dup Unix.stdout in
+ let stderr_backup = Unix.dup Unix.stderr in
26
let filename = Filename.temp_file "ocaml-mdx" "stdout" in
27
let fd_out =
28
Unix.openfile filename Unix.[ O_WRONLY; O_CREAT; O_TRUNC ] 0o600
0 commit comments