1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 15:40:47 +00:00

dhcpcd crashes when calling --release too often, or together with other commands

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-04-10 20:31:11 +10:00
parent 19a595773b
commit 4997104f70
4 changed files with 21 additions and 14 deletions

View File

@@ -84,8 +84,10 @@ func (s *QemuSuite) RunQemuInstalled(c *C, additionalArgs ...string) error {
func (s *QemuSuite) runQemu(c *C, args ...string) error {
c.Assert(s.qemuCmd, IsNil) // can't run 2 qemu's at once (yet)
s.qemuCmd = exec.Command(s.runCommand, args...)
//s.qemuCmd.Stdout = os.Stdout
s.qemuCmd.Stderr = os.Stderr
if os.Getenv("DEBUG") != "" {
s.qemuCmd.Stdout = os.Stdout
s.qemuCmd.Stderr = os.Stderr
}
if err := s.qemuCmd.Start(); err != nil {
return err
}