On Fri, 17 Nov 2006, Dirk Engling wrote:

Hi,

Rumors went around and tales were told about jails magically booing
around in prison list, even after they deceased.
...
My suggestion would be (I will provide a patch, if discussion produces
no major disagreement) to release ucred structs held by sockets as soon
as the process dies. They are being used for accounting purposes only,
anyway. The same may apply to the other types of phantom jails, as well.
I could not create those deliberately and therefore can not exactly spot
the proper location to fix.

Comments?

P.S.: if you want to reproduce a phantom jail try the following:
1) create and start a jail
2) Start a ssh/web/whatever server within the jail
3) Connect to that server from the host system.
4) Keep this connection open while you kill the jail
5) Do a 'jls' and compare its output to "ps axuu | grep J"
6) Kill the process that connected to the service.
7) Do a 'jls' again.

while this works you can also reproduce it if you log out of the jail
wait for the sockets to go away entirely and then stop the jail
because what keeps the jail up is not a socket but is related to devfs
and ?tys.

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/89528

--
Bjoern A. Zeeb                          bzeeb at Zabbadoz dot NeT
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to