From 4fa5afb886ea4138bb44c569e693a1608e643223 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 e87a067..9c018fa 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); }