OSError 故障排除:pty 设备不足
调用 pty.openpty()
时,我有时会收到 OSError 异常,并显示消息“out of pty devices”(当我的脚本的一堆实例同时运行时会发生这种情况)。
我达到的极限是什么?我该如何解决这个问题?
CentOS 5.6、Python 2.4
From time to time I'm getting an OSError exception with the message 'out of pty devices' when calling pty.openpty()
(it's happening when a bunch of instances of my scripts run concurrently).
What is the limit that I'm hitting? How can I get around this?
CentOS 5.6, Python 2.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我的 Ubuntu Linux 中,打开 pty 的最大数量由以下方式给出:
该值可在以下位置配置:
所有这些信息,以及更多信息可以在:
In my Ubuntu Linux, the max number of open ptys is given by:
This value is configurable in:
All this info, and much more can be found in:
当未安装
devpts
时(通常在 chroots 中)来安装devpts
设备类型,也会出现同样的问题:Same issue is raised when
devpts
is not mounted, usually in chroots, to mountdevpts
device type: