From 4fa81a14d7e657e3976c26c64748b5963a55c56d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 17 May 2018 10:45:50 +0100 Subject: make sure we leave no zombie alive --- src/frontend/gui/sisyphus-gui.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/frontend/gui/sisyphus-gui.py') diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 406ea7a..0f290c8 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -377,6 +377,7 @@ class MainWorker(QtCore.QObject): atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) + portageExec.wait() syncLocalDatabase() self.finished.emit() @@ -389,6 +390,7 @@ class MainWorker(QtCore.QObject): atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) + portageExec.wait() syncLocalDatabase() self.finished.emit() @@ -400,6 +402,7 @@ class MainWorker(QtCore.QObject): atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) + portageExec.wait() syncLocalDatabase() self.finished.emit() @@ -411,6 +414,7 @@ class MainWorker(QtCore.QObject): atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) + portageExec.wait() syncLocalDatabase() self.finished.emit() -- cgit v1.2.3