On Sat, 5 Nov 2005 12:57:35 +0100
Peter Holm <peter@holm.cc> wrote:
> On Sat, Nov 05, 2005 at 11:56:51AM +0100, Manfred Lotz wrote:
> > Using FreeBSD 6.0 I get a pty problem after a while
> > E.g., rlwrap
> > rlwrap: warning: Could not get controlling terminal for rlwrap:
> > Device not configured rlwrap: error: read error on master pty: No
> > such file or directory
> >
> > Of course, it happens with other programs as well. It seems to be a
> > known problem as I saw from another post.
> >
> > Does anybody have at least a workaround?
> >
>
> That depends. Have you run out of ptys? Does "script xxx" fail?
>
I guess I ran out of usable ptys because of this:
...
28245 mc NAMI "/dev/ptyp0"
28245 mc RET open -1 errno 5 Input/output error
28245 mc CALL open(0xbfbfe220,0x2,0xbfbfe248)
28245 mc NAMI "/dev/ptyp1"
28245 mc RET open -1 errno 5 Input/output error
28245 mc CALL open(0xbfbfe220,0x2,0xbfbfe248)
28245 mc NAMI "/dev/ptyp2"
28245 mc RET open -1 errno 5 Input/output error
28245 mc CALL open(0xbfbfe220,0x2,0xbfbfe248)
28245 mc NAMI "/dev/ptyp3"
28245 mc RET open -1 errno 5 Input/output error
28245 mc CALL open(0xbfbfe220,0x2,0xbfbfe248)
28245 mc NAMI "/dev/ptyp4"
28245 mc RET open -1 errno 5 Input/output error
28245 mc CALL open(0xbfbfe220,0x2,0xbfbfe248)
28245 mc NAMI "/dev/ptyp5"
28245 mc RET open -1 errno 5 Input/output error
...
ls -l /dev/pty* shows:
crw-rw-rw- 1 root wheel 0, 129 Nov 4 21:02 /dev/ptyp0
crw-rw-rw- 1 root wheel 0, 131 Nov 5 12:08 /dev/ptyp1
crw-rw-rw- 1 root wheel 0, 133 Nov 5 12:59 /dev/ptyp2
crw-rw-rw- 1 root wheel 0, 135 Nov 5 11:49 /dev/ptyp3
crw-rw-rw- 1 root wheel 0, 137 Nov 5 13:34 /dev/ptyp4
crw-rw-rw- 1 root wheel 0, 139 Nov 5 12:54 /dev/ptyp5
crw-rw-rw- 1 root wheel 0, 141 Nov 5 13:29 /dev/ptyp6
crw-rw-rw- 1 root wheel 0, 143 Nov 4 21:00 /dev/ptyp7
--
Manfred