vm/filecopy: close stdin when no more data will be read

This will allow qrexec_agent drop the data instead of buffering it.
This commit is contained in:
Marek Marczykowski 2012-08-27 00:28:23 +02:00
parent 1ae20c65af
commit 4fa5afb886

View File

@ -49,6 +49,7 @@ void send_status_and_crc(int code) {
void do_exit(int code)
{
close(0);
send_status_and_crc(code);
exit(code);
}