vm/filecopy: add one missing write() error checking

This commit is contained in:
Marek Marczykowski 2012-08-27 00:27:27 +02:00
parent 13e973a591
commit 1ae20c65af

View File

@ -42,7 +42,8 @@ void send_status_and_crc(int code) {
saved_errno = errno; saved_errno = errno;
hdr.error_code = code; hdr.error_code = code;
hdr.crc32 = crc32_sum; hdr.crc32 = crc32_sum;
write_all(1, &hdr, sizeof(hdr)); if (!write_all(1, &hdr, sizeof(hdr)))
perror("write status");
errno = saved_errno; errno = saved_errno;
} }