[entropy.cache] EntropyCacher: reset excepthook when running inside child process

This commit is contained in:
Fabio Erculiani
2010-01-06 10:39:51 +01:00
parent 4691369df3
commit da5fe28b71
+2
View File
@@ -167,6 +167,8 @@ class EntropyCacher(Singleton):
pid = os.fork()
if pid == 0:
# make sure there's nothing weird bound to exception hook
sys.excepthook = sys.__excepthook__
for (key, cache_dir), data in massive_data:
d_o = entropy.dump.dumpobj
if d_o is not None: