Explorar o código

vm-file-editor: close output when done writing

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

+ 1 - 0
qubes-rpc/vm-file-editor.c

@@ -64,6 +64,7 @@ void send_file_back(char * filename)
 	if (!copy_fd_all(1, fd))
 	 exit(1);
 	close(fd);
+	close(1);
 }
 
 int