2
我嘗試通過linux os上的一對僞tty來打開網絡連接。在僞tty上運行slattach
# slattach -v /dev/ptmx
cslip started on /dev/ptmx interface sl0
好的,這是僞tty的「創建方」。
我可以看看/ dev/pts並在那裏找到新的pty。 如果我現在嘗試也使用slattach時在這方面我有:
slattach -v /dev/pts/3
slattach: tty_open(/dev/pts/3, RW): Input/output error
我跟蹤與strace的:
28 5505 write(1, "slattach: tty_open: trying to op"..., 46) = 46
29 5505 open("/dev/pts/3", O_RDWR|O_NONBLOCK) = -1 EIO (Input/output error)
30 5505 write(2, "slattach: tty_open(/dev/pts/3, R"..., 55) = 55
31 5505 exit_group(3)
所有這一切都發生在Ubuntu上的不同的發行版,在10.04和11.04,兩者測試正在失敗。
我在做什麼錯了?