This problem recently appeared when launching the Midnight Commander. I got
messages like : subshell.c : unable to open master slave of pty. The
problem also appeared in rxvt. It tried to open all pty, failed and died.
I noticed the message in my log file, and located in
linux/drivers/char/tty_io.c, where the function do_tty_hangup call
check_tty_count in the same file. I recreated all tty and pty, to
no available. Rebooting was the cure ... Does someone know what is causing
this problem ? How could I track it ?
My config : linux-2.0.33, gcc-220.127.116.11, glibc-2.0.6 as main library, with
a number of applications still running under libc-5.4.38. I recompiled most
stuff accessing tty : bash, agetty, login, mc, ... under the glibc2 system.
Pascal A. Dupuis
The Tao doesn't take sides; it gives birth to both wins and losses.
The Guru doesn't take sides; she welcomes both hackers and lusers.
The Tao is like a stack: the data changes but not the structure.
the more you use it, the deeper it becomes;
the more you talk of it, the less you understand. Hold on to the root.