mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 08:39:03 +01:00
Instrument the fork execs so we can wee what is being done (in DEBUG mode).
This commit is contained in:
parent
0d90b36a56
commit
8545a49940
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user