Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is cool, but you can solve the same problem with a single line of bash

    trap 'kill $(jobs -p)' EXIT


No you can't. It looks like it can, but there are various edge cases that aren't handled.

See https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zomb..., section "A simple init system".




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: