aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/init.go')
-rw-r--r--sandbox/init.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox/init.go b/sandbox/init.go
index 5ebac810..05d66236 100644
--- a/sandbox/init.go
+++ b/sandbox/init.go
@@ -312,10 +312,13 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) {
switch {
case w.wstatus.Exited():
r = w.wstatus.ExitStatus()
+ msg.Verbosef("initial process exited with code %d", w.wstatus.ExitStatus())
case w.wstatus.Signaled():
r = 128 + int(w.wstatus.Signal())
+ msg.Verbosef("initial process exited with signal %s", w.wstatus.Signal())
default:
r = 255
+ msg.Verbosef("initial process exited with status %#x", w.wstatus)
}
go func() {