Skip to content

Instantly share code, notes, and snippets.

@robmckinnon
Created April 10, 2018 21:59
Show Gist options
  • Save robmckinnon/cb9fe3b7ebe5be5017bee29e3aba613f to your computer and use it in GitHub Desktop.
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.
#!/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