LaMont Jones, le Tue 06 Sep 2005 08:35:19 -0600, a écrit : > On Tue, Sep 06, 2005 at 04:28:28PM +0200, Samuel Thibault wrote: > > LaMont Jones, le Tue 06 Sep 2005 08:26:27 -0600, a écrit : > > > And vt 2-15 when opened to check them, are also busy... > > No: vt_1_ is opened to check them. > > And _WE_ have them open as stdin.
"them"? My patch makes getty close stdin, then open /dev/tty1 (which is always busy anyway), call ioctl on it to check whether the wanted vt is available, then close /dev/tty1, and finally open the wanted vt. Where is the issue? (except the race between checking availability and opening the vt) Notice that there is no more need for a loop opening vt2-(wanted_vt-1) for making VT_OPENQRY work. Regards, Samuel

