Zombie Jails - why don't they disappear?

Ed Schouten ed at fxq.nl
Wed Feb 21 22:08:18 UTC 2007


* Josef Karthauser <joe at tao.org.uk> wrote:
> Any ideas why they are still hanging around in the jail list?

The problem is quite complex:

- pty's aren't deallocated in the kernel anymore
- because pty device nodes cannot be deallocated before it has no
  process groups bound to it, pty's wouldn't even be deallocated in a
  lot of situations (kill sshd).

The easiest fix would be to replace the make_dev_cred() call in
tty_pty.c with make_dev(). This should at least solve the jail leak.

-- 
 Ed Schouten <ed at fxq.nl>
 WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070221/358e5379/attachment.pgp


More information about the freebsd-current mailing list