Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 28, 2023
1 parent e6b3d17 commit 1900306
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod_gearman_worker_testcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ func runTestCmd(conf *configurationStruct, args []string) (rc int, output string
return 3, "usage: mod_gearman_worker [--job_timeout=seconds] testcmd <cmd> <args>"
}
logger.Debugf("test cmd: %s\n", check.commandLine)

// parse command line to see if we need to start the epn daemon
command := parseCommand(check.commandLine, conf)
if command.ExecType == EPN {
startEmbeddedPerl(conf)
atomic.StoreInt64(&aIsRunning, 1)
defer stopAllEmbeddedPerl()
}

res := readAndExecute(check, conf)
rc = res.returnCode
output = res.output
Expand Down

0 comments on commit 1900306

Please sign in to comment.