Open chetan-reddy opened 3 days ago
We just need to plumb the host.TTYFileDescription
into /dev/tty
device. It currently always returns EIO
from open:
https://github.com/google/gvisor/blob/master/pkg/sentry/devices/ttydev/ttydev.go#L38
I hacked together #10934 , and verified that emacs runs (shudder). I need to think more about the right way to do this. That PR is not the right way.
@chetan-reddy Can you patch #10934 and check that it works for you? I only moved the cursor around and CxCc
@nlacasse I wasn't able to compile that exact PR commit, but I was able to cherry-pick your change onto an older commit on the go branch (e9d8c6f70) and can confirm that emacs now works. Thanks for the fix!
Awesome! I need to figure out the right way to do this, but it's good to know that this is the correct approach. I'll spend more time on this in the next week or so.
Description
When I run
docker run -it --rm --network=none silex/emacs
, I get a working instance of emacs. But when I try withrunsc
, it fails immediatelyI tried with podman as well and got the exact same results.
Steps to reproduce
runsc version
docker version (if using docker)
uname
Linux mee 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
kubectl (if using Kubernetes)
No response
repo state (if built from source)
No response
runsc debug logs (if available)
No response