Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当stdin关闭时避免程序退出 #103

Closed
wants to merge 1 commit into from

Conversation

stkevintan
Copy link

@stkevintan stkevintan commented May 22, 2024

在docker环境下,退出it模式,stdin会自动触发close事件,此时不应该整个程序异常退出

@TimeRainStarSky
Copy link
Owner

stdin 关闭是应该程序退出,docker 可以设置 -it 保持打开,docker-compose

stdin_open: true
tty: true

@TimeRainStarSky
Copy link
Owner

如果确实需要关闭标准输入,应该整个标准输入都不被加载

@TimeRainStarSky
Copy link
Owner

TimeRainStarSky commented May 26, 2024

已修复 725dffe

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

Successfully merging this pull request may close these issues.

None yet

2 participants