

def _fork(self):
    try:
        pid = os.fork()
        if (pid > 0):
            os._exit(0)
    except OSError:
        LOG.exception(_LE('Fork failed'))
        sys.exit(1)

dataset/ETHPy150Open openstack/neutron/neutron/agent/linux/daemon.py Daemon._fork/original