Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2020 13:42:23 -0500
From:      Kyle Evans <kevans@freebsd.org>
To:        jail@freebsd.org
Subject:   Should killed process deref a jail?
Message-ID:  <CACNAnaGssAKJ1-LhfQ1yszkOYkGw0iDsFgxmcuEZmTf9M-hyTg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

In doing some testing of qemu-user-static recently, I noticed that
killing the last process in a non-persist jail doesn't kill off the
jail:

root@viper:/usr/src# jail -c path=/ command=yes
## ^C out

root@viper:/usr/src# jls
   JID  IP Address      Hostname                      Path
   181                                                /

root@viper:/usr/src# ps fxJ 181
PID TT  STAT TIME COMMAND

As a result, I ended up with 82 jails pointed at my armv7 sysroot and
much surprise when I checked out `jls`. This vaguely smells like a
bug, is this something that should be fixed?

Thanks,

Kyle Evans



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaGssAKJ1-LhfQ1yszkOYkGw0iDsFgxmcuEZmTf9M-hyTg>