3 ms·
The final example in the article is broken. Python interpreter as PID 1 can't handle linux signals.
by jo-wol 7y ago
The final example in the article is broken. Python interpreter as PID 1 can't handle linux signals.
- itamarst 7y agoThis is why I have a caveat at the top of the article as well as right after the last example. This particular issue is fixable with `docker run --init`, so not strictly necessary to fix in images.
- deathanatos 7y agoIt can if you install the appropriate signal handlers, which, if you don't fork, is quite easy. While for a real-world app you're probably right, the article's example is not fleshed out sufficiently to tell one way or another.