pseudoterminals question

Unga unga888 at
Fri Jul 18 04:14:20 UTC 2008


I'm experiencing "The system has no more ptys.  Ask your system administrator to create more.". Well, I'm the system administrator, don't know what to do :) I want to understand more about ptys in FreeBSD. I have following questions.

ls -l /dev/ | grep pty
crw-rw-rw-  1 root  wheel       0, 169 Jul 18 10:34 ptyp0
crw-rw-rw-  1 root  wheel       0, 171 Jul 18 11:21 ptyp1
crw-rw-rw-  1 root  wheel       0, 178 Jul 18 11:13 ptyp2
crw-rw-rw-  1 root  wheel       0, 180 Jul 18 10:34 ptyp3
crw-rw-rw-  1 root  wheel       0, 182 Jul 18 11:19 ptyp4

1) That is, I have only 5 ptys, am I right?

2) As per FAQ,
Build and install a new kernel with the line in the configuration file:
device pty N
where N is the number of requested pseudoterminals."

I'm using FreeBSD 7.0, its GENERIC file has only "device pty", no N. What is the default for N, is it 5?

3) Is there a way to increase the number of ptys without rebuild the kernel?

Appreciate your reply.

Kind regards


More information about the freebsd-questions mailing list