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:
parent
d5c82b0e73
commit
3f946bfce7
@ -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");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user