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

The use of self-suspension #184

Open
vanrein opened this issue Apr 23, 2019 · 0 comments
Open

The use of self-suspension #184

vanrein opened this issue Apr 23, 2019 · 0 comments

Comments

@vanrein
Copy link

vanrein commented Apr 23, 2019

Nice little utitility, and useful, thanks!

The lines
https://github.com/Yelp/dumb-init/blob/master/dumb-init.c#L120-L122
cause behaviour that seems problematic, yet they are hard-wired. I wonder why?

If I start a program on the terminal, using docker run <img>, it may block the terminal. Then, if I press ^C it breaks out of that. However, if I first enter ^Z I will have suspended dumb-init and cannot use ^C anymore. That is not very useful, and maybe should be opted out from?

It would have made sense if we could send ^Z to the Docker command, which would send it inward and then pause the container, but it doesn't.

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

1 participant