code: def post_fork_child(self):
      
      entry_point = '{}:launch'.format(__name__)
      exec_env = combined_dict(os.environ, dict(PANTS_ENTRYPOINT=entry_point))
      # Pass all of sys.argv so that we can proxy arg flags e.g. `-ldebug`.
      cmd = [sys.executable] + sys.argv
      self._logger.debug('cmd is: PANTS_ENTRYPOINT={} {}'.format(entry_point, ' '.join(cmd)))
      # TODO: Improve error handling on launch failures.
      os.spawnve(os.P_NOWAIT, sys.executable, cmd, env=exec_env)
docs: Post-fork() child callback for ProcessManager.daemon_spawn().