浏览代码

vm-file-editor: close output when done writing

Vincent Penquerc'h 10 年之前
父节点
当前提交
47c657b123
共有 1 个文件被更改,包括 1 次插入0 次删除
  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