1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

cov: capture runtime exception

This commit is contained in:
Zdenek Kabelac 2021-09-20 10:26:26 +02:00
parent d5c82b0e73
commit 3f946bfce7

View File

@ -536,7 +536,11 @@ struct FileSource : Source {
lseek( fd, 0, SEEK_END );
}
if ( fd >= 0 )
Source::sync( s );
try {
Source::sync( s );
} catch (...) {
perror("failed to sync");
}
}
};