aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-10-14 12:09:21 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-10-14 12:09:21 +0000
commite9b6fc8361a1dfbc813be2145bf9924226c4fba1 (patch)
treec1e3937ef37e10d5c315398dde5e9aa38616edd1
parentf08d683bcd0b7e746b30fac9b16beb296fd97f18 (diff)
downloadpaludis-e9b6fc8361a1dfbc813be2145bf9924226c4fba1.tar.gz
paludis-e9b6fc8361a1dfbc813be2145bf9924226c4fba1.tar.xz
Tweak exception handling some more.
-rw-r--r--src/clients/reconcilio/littlelf/elf.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/clients/reconcilio/littlelf/elf.cc b/src/clients/reconcilio/littlelf/elf.cc
index a8f152e..aedde96 100644
--- a/src/clients/reconcilio/littlelf/elf.cc
+++ b/src/clients/reconcilio/littlelf/elf.cc
@@ -46,7 +46,13 @@ namespace
~StreamExceptions()
{
- _stream.exceptions(_old);
+ try
+ {
+ _stream.exceptions(_old);
+ }
+ catch (const std::ios_base::failure &)
+ {
+ }
}
};
@@ -146,6 +152,7 @@ ElfObject<ElfType_>::is_valid_elf(std::istream & stream)
}
catch (const std::ios_base::failure &)
{
+ stream.clear();
return false;
}
}