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

Props for this. Just last week, I was searching for a similar solution and ended up coding this - https://github.com/code-mancers/invoker/blob/master/lib/invo...

It doesn't kill the shell, when one of the process dies but kills the processes if shell dies. There is some trick involved in the way trap gets called though when shell dies and without waiting on the processes twice - shell exits without killing child processes.




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

Search: