Przeglądaj źródła

vm-file-editor: close output when done writing

Vincent Penquerc'h 10 lat temu
rodzic
commit
47c657b123
1 zmienionych plików z 1 dodań i 0 usunięć
  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