>>> On Fri, 5 Oct 2001 15:04:33 -0400 >>> Christopher Faylor <[EMAIL PROTECTED]> said:
> Hmm. I'm not sure that I understand the logic here. I understand why > this would cure the problem with xterm since it uses a pty, but you're > now saying that if a process is using ptys it should not free its > console. That seems sort of arbitrary. Well, I'll try to add explanation as far as I can. When an application closes its controlling tty and calls setsid(), it wants to become a daemon or start another session with another controlling tty. In the latter case, it can spawn a shell with the tty, then the shell can spawn Windows applications. Some of them require their console to show their output on WinNT/2K. If the console is freed, these applications would allocate another console. My tricks are mainly intended to distinguish the latter from the former. In the latter, the application generally allocates a pseudo tty. So the tricks check whether the application are using it. ____ | AIST Kazuhiro Fujieda <[EMAIL PROTECTED]> | HOKURIKU Center for Information Science o_/ 1990 Japan Advanced Institute of Science and Technology
