Update src/lcpex/vpty/libclpex_tty.cpp
parent
d4d5a2b30d
commit
67ab74a8c8
|
@ -300,7 +300,7 @@ int exec_pty(
|
||||||
waitpid(pid, &status, 0);
|
waitpid(pid, &status, 0);
|
||||||
|
|
||||||
// Drain the pipes before exiting
|
// Drain the pipes before exiting
|
||||||
while ((byte_count = read(fd_child_stdout_pipe[READ_END], buf, BUFFER_SIZE)) > 0) {
|
while ((byte_count = read(masterFd, buf, BUFFER_SIZE)) > 0) {
|
||||||
write_all(stdout_log_fh->_fileno, buf, byte_count);
|
write_all(stdout_log_fh->_fileno, buf, byte_count);
|
||||||
write_all(STDOUT_FILENO, buf, byte_count);
|
write_all(STDOUT_FILENO, buf, byte_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue