def fork_child(self, zero_byte_fps=False, **kwargs):
        pid = os.fork()
        if pid:
            return pid
        else:
            signal.signal(signal.SIGTERM, signal.SIG_DFL)
            if zero_byte_fps:
                kwargs['zero_byte_fps'] = self.conf_zero_byte_fps
            try:
                self.run_audit(**kwargs)
            except Exception as e:
                self.logger.exception(
                    _("ERROR: Unable to run auditing: %s") % e)
            finally:
                sys.exit()
Child execution
dataset/ETHPy150Open openstack/swift/swift/obj/auditor.py/ObjectAuditor.fork_child