diff --git a/qrexec/qrexec_client.c b/qrexec/qrexec_client.c index cb47042f..81550c2c 100644 --- a/qrexec/qrexec_client.c +++ b/qrexec/qrexec_client.c @@ -107,6 +107,7 @@ void handle_input(int s) do_exit(1); } if (ret == 0) { + close(local_stdout_fd); local_stdout_fd = -1; shutdown(s, SHUT_WR); if (local_stdin_fd == -1) {