(fun)
return wrapper
Same as above but also handles zombies.
Same as above but also handles zombies.
Same as above but also handles zombies .
def wrap_exceptions_w_zombie(fun):
    """Same as above but also handles zombies."""
    @functools.wraps(fun)
    def wrapper(self, *args, **kwargs):
        try:
            return wrap_exceptions(fun)(self)
        except NoSuchProcess:
            if not pid_exists(self.pid):
                raise
            else:
                raise ZombieProcess(self.pid, self._name, self._ppid)
    return wrapper
def wrap_exceptions_w_zombie ( fun ) : @ functools . wraps ( fun ) def wrapper ( self , * args , * * kwargs ) : try : return wrap_exceptions ( fun ) ( self ) except NoSuchProcess : if not pid_exists ( self . pid ) : raise else : raise ZombieProcess ( self . pid , self . _name , self . _ppid ) return wrapper