mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +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 );
|
lseek( fd, 0, SEEK_END );
|
||||||
}
|
}
|
||||||
if ( fd >= 0 )
|
if ( fd >= 0 )
|
||||||
Source::sync( s );
|
try {
|
||||||
|
Source::sync( s );
|
||||||
|
} catch (...) {
|
||||||
|
perror("failed to sync");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user