(self)
Check that the pipe has not been closed by sending a probe.
Check that the pipe has not been closed by sending a probe.
Check that the pipe has not been closed by sending a probe .
def _check_alive(self):
        '''Check that the pipe has not been closed by sending a probe.'''
        try:
            # We cannot use send here as it calls ensure_running, creating
            # a cycle.
            os.write(self._fd, b'PROBE:0:noop\n')
        except OSError:
            return False
        else:
            return True
def _check_alive ( self ) : try : # We cannot use send here as it calls ensure_running, creating # a cycle. os . write ( self . _fd , b'PROBE:0:noop\n' ) except OSError : return False else : return True