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 4ae822846d
commit d1882bb9fc

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);
}