Created
April 10, 2018 21:59
-
-
Save robmckinnon/cb9fe3b7ebe5be5017bee29e3aba613f to your computer and use it in GitHub Desktop.
Elixir 1.6 Port documentation recommends the use of a process wrapper script to prevent zombie processes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
"$@" & | |
pid=$! | |
while read line ; do | |
echo line | |
done | |
kill -KILL $pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment