Cleanup oz-init-control when sandbox exits

master
xSmurf 10 years ago
parent 93ef716d94
commit b52ed64e7a

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

Loading…
Cancel
Save