SubProcess: notify exit listeners in _poll
authorZac Medico <zmedico@gentoo.org>
Sun, 20 Feb 2011 09:42:14 +0000 (01:42 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 Feb 2011 03:12:24 +0000 (19:12 -0800)
pym/_emerge/SubProcess.py

index b2b19d54dc4b86f030352f354b9bfe0c881c1da2..ef1346a632a9b1a8bb311ef88442f68629b68393 100644 (file)
@@ -38,6 +38,7 @@ class SubProcess(AbstractPollTask):
                if retval[0] == 0:
                        return None
                self._set_returncode(retval)
+               self.wait()
                return self.returncode
 
        def cancel(self):