From d1882bb9fcf5bbc2e2e4f6b1c65310f87fc5fbf2 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 27 Aug 2012 00:28:23 +0200 Subject: [PATCH] vm/filecopy: close stdin when no more data will be read This will allow qrexec_agent drop the data instead of buffering it. --- qubes_rpc/unpack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes_rpc/unpack.c b/qubes_rpc/unpack.c index e87a067b..9c018fa2 100644 --- a/qubes_rpc/unpack.c +++ b/qubes_rpc/unpack.c @@ -49,6 +49,7 @@ void send_status_and_crc(int code) { void do_exit(int code) { + close(0); send_status_and_crc(code); exit(code); }