Yelp/dumb-init

The use of self-suspension

vanrein opened this issue · 0 comments

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.