K 10 svn:author V 3 mbr K 8 svn:date V 27 2006-09-29T09:52:57.000000Z K 7 svn:log V 264 Free tty struct after last close. This should fix the pty-leak by numbers. Remove workarounds for tty_refcount beeing 0, this will be fixed differently later. Back out rev 1.145 since we initialize the tty struct from scratch and bad things can't happen anymore. END