Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

代码拉倒本地按照步骤打包后,terminal页面不能使用 #95

Open
Chras-fu opened this issue Mar 4, 2022 · 1 comment
Open

Comments

@Chras-fu
Copy link

Chras-fu commented Mar 4, 2022

访问terminal页面报错 fork/exec /system/bin/sh: Setctty set but Ctty not valid in child, 请问是什么原因?

@a940582450
Copy link

这是由于项目中引用了github.com/kr/pty v1.1.8 这个库
然后它其实是在搬运github.com/creack/pty v1.1.7
Setctty set but Ctty not valid in child这个bug就是由这个库产生的,
目前官方已经修复了这个bug,具体请看 creack/pty#96

所以事情就很简单了,在项目中把github.com/kr/pty v1.1.8 更换成github.com/creack/ptybugfix之后的版本,比如github.com/creack/pty v1.1.15即可。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants