Change to replace stderr with conout

This commit is contained in:
erw7
2019-11-22 13:51:14 +09:00
committed by Björn Linse
parent 4e06594c53
commit c86d5fa981
2 changed files with 6 additions and 3 deletions

View File

@@ -482,7 +482,7 @@ uint64_t channel_from_stdio(bool rpc, CallbackReader on_output,
stdin_dup_fd = os_dup(STDIN_FILENO);
os_replace_stdin_to_conin();
stdout_dup_fd = os_dup(STDOUT_FILENO);
os_replace_stdout_to_conout();
os_replace_stdout_and_stderr_to_conout();
}
#endif
rstream_init_fd(&main_loop, &channel->stream.stdio.in, stdin_dup_fd, 0);