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

This commit is contained in:
Vincent Penquerc'h 2013-12-29 07:01:45 -05:00 committed by Marek Marczykowski-Górecki
parent 511b614f56
commit 5af6f0ff7f

View File

@ -30,6 +30,7 @@ void send_file(char *fname)
if (!copy_fd_all(1, fd)) if (!copy_fd_all(1, fd))
gui_fatal("send file to dispVM"); gui_fatal("send file to dispVM");
close(1); close(1);
close(fd);
} }
int copy_and_return_nonemptiness(int tmpfd) int copy_and_return_nonemptiness(int tmpfd)