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?
Depends. If the last process held some socket and the socket is still in the state LINGER. See https://deepix.github.io/2016/10/21/tcprst.html for more details, after the heading 'What is SO_LINGER?' You can probably see those sockets with sockstat -s | grep -v ESTAB | grep -v LISTEN | grep -v TIME_WAIT | grep -v stream -- p...@opsec.eu +49 171 3101372 Now what ? _______________________________________________ freebsd-jail@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"