Pārlūkot izejas kodu

vm-file-editor: close output when done writing

Vincent Penquerc'h 10 gadi atpakaļ
vecāks
revīzija
47c657b123
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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