From 5af6f0ff7fb38979776d4d708ed4bbe61045ef43 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Sun, 29 Dec 2013 07:01:45 -0500 Subject: [PATCH] qopen-in-vm: close output when we're done writing to it --- qubes-rpc/qopen-in-vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes-rpc/qopen-in-vm.c b/qubes-rpc/qopen-in-vm.c index 80f99c3..039716a 100644 --- a/qubes-rpc/qopen-in-vm.c +++ b/qubes-rpc/qopen-in-vm.c @@ -30,6 +30,7 @@ void send_file(char *fname) if (!copy_fd_all(1, fd)) gui_fatal("send file to dispVM"); close(1); + close(fd); } int copy_and_return_nonemptiness(int tmpfd)