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

Exiting from top causes container to shut down #47

Open
lePereT opened this issue Apr 13, 2020 · 3 comments
Open

Exiting from top causes container to shut down #47

lePereT opened this issue Apr 13, 2020 · 3 comments

Comments

@lePereT
Copy link

lePereT commented Apr 13, 2020

For the previous issue I used top inside the container to determine that something was up with urngd. However, consistently when leaving top with a ctrl + c it causes the container itself to crash.

To replicate:

  1. docker run --rm -it openwrtorg/rootfs
  2. top
  3. ctrl + c
  4. wait 2 seconds
@lePereT
Copy link
Author

lePereT commented Apr 13, 2020

On some further digging, I think it's related to the errror message that appears just above the banner on login using the Readme command of docker run --rm -it openwrtorg/rootfs, which is /bin/ash: can't access tty; job control turned off

This looks like it means that advanced tty functionality like ctrl + c is unavailable

@lePereT
Copy link
Author

lePereT commented Apr 13, 2020

So this gets weirder, and it's now exceeded my capacity to diagnose. Using the readme's command docker run --rm -it openwrtorg/rootfs leads to the issue here and the previous one I posted in #46.

However, if I use docker run -it openwrtorg/rootfs it again displays the same problems. But if I restart the crashed container then it behaves seemingly perfectly (except that urngd starts using 100% of CPU after a few hours good behaviour) . Any idea as to what's happening here?

@aparcar
Copy link
Member

aparcar commented May 20, 2020

I'm aware of the ctrl + c (SIGINT) issue, however don't know how to fix it. If you come up with an idea please help me out.

@lynxis do you have an idea regarding the tty access trouble?

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

No branches or pull requests

2 participants