Reviewers: nigeltao,
Message:
Hello
nige...@golang.org (cc:
ta...@googlegroups.com),
I'd like you to review this change to
https://code.google.com/p/taowm
Description:
taowm: fix shadowed variable for doExec log message.
Please review this at
https://codereview.appspot.com/7086044/
Affected files:
M taowm/actions.go
Index: taowm/actions.go
===================================================================
--- a/taowm/actions.go
+++ b/taowm/actions.go
@@ -19,12 +19,12 @@
return false
}
go func() {
- cmd := exec.Command(cmd[0], cmd[1:]...)
- if err := cmd.Start(); err != nil {
+ c := exec.Command(cmd[0], cmd[1:]...)
+ if err := c.Start(); err != nil {
log.Printf("could not start command %q: %v", cmd, err)
}
// Ignore any error from the program itself.
- cmd.Wait()
+ c.Wait()
}()
return false
}