code: def save_pid(name):
      
      if os.environ.get('MITOGEN_SAVE_PIDS'):
          with open('.ansible-%s.pid' % (name,), 'w') as fp:
              fp.write(str(os.getpid()))
docs: When debugging and profiling, it is very annoying to poke through the
      process list to discover the currently running Ansible and MuxProcess IDs,
      especially when trying to catch an issue during early startup. So here, if
      a magic environment variable set, stash them in hidden files in the CWD::
  
          alias muxpid="cat .ansible-mux.pid"
          alias anspid="cat .ansible-controller.pid"
  
          gdb -p $(muxpid)
          perf top -p $(anspid)