Replies: 3 comments
-
Alas,
If you use this option, it works as expected. |
Beta Was this translation helpful? Give feedback.
-
Basically, you can not run processes that require a terminal via I am not sure if there's a way for runc to detect this and bail out (because currently it is bombarded with SIGTTIN and eats 100% CPU). What happens is Line 129 in 0c0ec3f As a result of all that, we have a mess of several goroutines using all CPU available. This is caused by the fact that From
(the default behavior is to stop the program, same as for SIGSTOP). Frankly, I don't know what to do. If we choose to not change the default for SIGTTIN/SIGTTOU, runc will just be stopped. I took a look at crun, and it handles all this in a single process, listening to events, including signals, via |
Beta Was this translation helpful? Give feedback.
-
Yes you are right,but i am not sure if there are other ways of using it that would make runc a background process,so i use a tmpporary way to avoid this problem I set a state in
Then it will be judged in the
But i didn't think about the issues related to resource release and signal processing,so maybe i can actively wait for a good solution good luck : ) |
Beta Was this translation helpful? Give feedback.
-
runc/tty.go
Line 102 in 0c0ec3f
if run CLI in shell script,
recvtty
will not return, The code logic will hang when executing tty.Close()runc/tty.go
Line 185 in 0c0ec3f
Beta Was this translation helpful? Give feedback.
All reactions