code: def daemonize_if(opts):
      '''
      Daemonize a module function process if multiprocessing is True and the
      process is not being called by salt-call
      '''
      if 'salt-call' in sys.argv[0]:
          return
      if not opts.get('multiprocessing', True):
          return
      if sys.platform.startswith('win'):
          return
      daemonize(Falsef daemonize_if(opts):
      '''
      Daemonize a module function process if multiprocessing is True and the
      process is not being called by salt-call
      '''
      if 'salt-call' in sys.argv[0]:
          return
      if not opts.get('multiprocessing', True):
          return
      if sys.platform.startswith('win'):
          return
      daemonize(False)
docs: Daemonize a module function process if multiprocessing is True and the
      process is not being called by salt-call