1
0
kill-child-jobs/bash.sh
2020-05-27 13:49:48 -07:00

8 lines
141 B
Bash
Executable File

#!/bin/bash
set -e
kill_child_jobs() {
# From https://unix.stackexchange.com/a/544167
while kill %% 2>/dev/null; do sleep 0; done
}