[patch] new pty allocation strategy for BSD
Roland Illig
roland.illig at gmx.de
Sat Feb 4 12:06:50 UTC 2006
Hi,
subshell.c currently contains hard-coded values for the available pty
names. These names do not match with the ptys that can be found on
actual systems. NetBSD 3.0 has ptyp[0-9A-Za-z], as well as
pty[qrs][0-9A-Za-z], so mc can only use 64 of the 100 available ptys.
There may be similar issues on other systems, I haven't checked.
The appended patch just scans through the /dev/ directory, looking for
anything that matches /^pty..$/.
Roland
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: subshell.c.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20060204/6b24f217/attachment.ksh>
More information about the mc-devel
mailing list