Instrument the fork execs so we can wee what is being done (in DEBUG mode).

This commit is contained in:
Ian A Mason 2017-07-21 13:38:52 -07:00
parent 0d90b36a56
commit 8545a49940

View File

@ -13,6 +13,14 @@ func execCmd(cmdExecName string, args []string, workingDir string) (success bool
cmd.Stdin = os.Stdin
cmd.Dir = workingDir
err = cmd.Run()
success = (err == nil)
ecode := 0
if err != nil {
ecode = 1
}
LogDebug("execCmd: %v %v in %v had exitCode %v\n", cmdExecName, args, workingDir, ecode)
if err != nil {
LogDebug("execCmd: error was %v\n", err)
}
success = (ecode == 0)
return
}