code: def patched_fork(self):
          
          pid = self.original_os_fork()
          if not pid:
              _LOG('Fork detected. Reinstalling Manhole.')
              self.reinstall()
          return pid
docs: Fork a child process.