code: def _check_cmdline(data):
      '''
      In some cases where there are an insane number of processes being created
      on a system a PID can get recycled or assigned to a non-Salt process.
      On Linux this fn checks to make sure the PID we are checking on is actually
      a Salt process.
  
      For non-Linux systems we punt and just return True
      '''
      if not salt.utils.platform.is_linux():
          return True
      pid = data.get('pid')
      if not pid:
          return False
      if not os.path.isdir('/proc'):
          return True
      path = os.path.join('/proc/{0}/cmdline'.format(pid))
      if not os.path.isfile(path):
          return False
      try:
          with salt.utils.files.fopen(path, 'rb') as fp_:
              if b'salt' in fp_.read():
                  return True
      except (OSError, IOError):
          return Falsf _check_cmdline(data):
      '''
      In some cases where there are an insane number of processes being created
      on a system a PID can get recycled or assigned to a non-Salt process.
      On Linux this fn checks to make sure the PID we are checking on is actually
      a Salt process.
  
      For non-Linux systems we punt and just return True
      '''
      if not salt.utils.platform.is_linux():
          return True
      pid = data.get('pid')
      if not pid:
          return False
      if not os.path.isdir('/proc'):
          return True
      path = os.path.join('/proc/{0}/cmdline'.format(pid))
      if not os.path.isfile(path):
          return False
      try:
          with salt.utils.files.fopen(path, 'rb') as fp_:
              if b'salt' in fp_.read():
                  return True
      except (OSError, IOError):
          return False
docs: In some cases where there are an insane number of processes being created
      on a system a PID can get recycled or assigned to a non-Salt process.
      On Linux this fn checks to make sure the PID we are checking on is actually
      a Salt process.
  
      For non-Linux systems we punt and just return True