Explorar o código

qopen-in-vm: close output when we're done writing to it

Vincent Penquerc'h %!s(int64=10) %!d(string=hai) anos
pai
achega
5af6f0ff7f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      qubes-rpc/qopen-in-vm.c

+ 1 - 0
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)