Cleanup oz-init-control when sandbox exits

master
xSmurf 10 years ago
parent 93ef716d94
commit b52ed64e7a

@ -4,6 +4,7 @@ import (
"bufio"
"fmt"
"io"
"os"
"os/exec"
"path"
"sync"
@ -232,6 +233,7 @@ func (sbox *Sandbox) remove(log *logging.Logger) {
if sb.profile.Networking.Nettype == network.TYPE_BRIDGE {
sb.network.Cleanup(log)
}
os.Remove(sb.addr)
} else {
sboxes = append(sboxes, sb)
}

Loading…
Cancel
Save