logoalt Hacker News

preisschildyesterday at 10:40 AM0 repliesview on HN

Another "interesting" related thing I found is that pid 1 signals are handled differently in the kernel. Basically, SIGTERM is ignored and you need to explicitly handle it in your program. Took me quite a while before I found out why my program in a container didn't quit gracefully...

https://raby.sh/sigterm-and-pid-1-why-does-a-container-linge...