diff --git a/pupy/pp.py b/pupy/pp.py index 96586a79..01686c3b 100755 --- a/pupy/pp.py +++ b/pupy/pp.py @@ -157,8 +157,10 @@ class ReverseSlaveService(Service): raise try: - while True: - os.waitpid(-1, os.WNOHANG) + pid = os.waitpid(-1, os.WNOHANG) + while pid: + pid = os.waitpid(-1, os.WNOHANG) + except OSError: pass