[jail] jls shows dead jails too?

Take this discussion thread as post title. Last night Eintisy said jls sometimes shows stoped jail. And we can’t even find a solution. So just collecting some (might be) usefull informations here:

AFAIK, there is no solution right now. But it didn’t impact other jail system anyway.

Updated 2007/01/12: Ed Schouten wrote this.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn
 

One reply


  1. Hello,

    I think I may have found the solution for this bug. The jail leaks are caused by pty’s (well, actually device nodes in general) that get created inside a jail. They still hold references to ucreds belonging to the prison.

    I made a small patch that adds a function to the ucred code to discard the reference to the prison to fix the leaking. Please see my website for more details and a patch.

Leave a reply

Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan