cvs commit: src/sys/kern tty_tty.c
dillon 2005/01/28 21:48:17 PST
DragonFly src repository
Modified files:
sys/kern tty_tty.c
Log:
Do not leave VCTTYISOPEN set if our attempt to open /dev/tty fails, otherwise
we will close the controlling terminal on exit even though we didn't open it.
This case occurs when a jailed shell is created because /dev/tty cannot be
opened in that case.
Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Revision Changes Path
1.12 +2 -0 src/sys/kern/tty_tty.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/tty_tty.c.diff?r1=1.11&r2=1.12&f=u