2 ms·
This is cool, but you can solve the same problem with a single line of bash trap 'kill $(jobs -p)' EXIT
by dpedu 11y ago
This is cool, but you can solve the same problem with a single line of bash
trap 'kill $(jobs -p)' EXIT
- FooBarWidget 11y agoNo 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-zombie-reaping-problem/ https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zomb..., section "A simple init system".