From da5fe28b71d3872813f0776fe49494e516595083 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 6 Jan 2010 10:39:51 +0100 Subject: [PATCH] [entropy.cache] EntropyCacher: reset excepthook when running inside child process --- libraries/entropy/cache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/entropy/cache.py b/libraries/entropy/cache.py index b29cc5765..1a69da289 100644 --- a/libraries/entropy/cache.py +++ b/libraries/entropy/cache.py @@ -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: