def daemonize_if(opts):
 if ('salt-call' in sys.argv[0]):
  return
 if (not opts.get('multiprocessing', True)):
  return
 if sys.platform.startswith('win'):
  return
 daemonize(False)

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