Hacker News new | past | comments | ask | show | jobs | submit login

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".




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

Search: