1
0

Add example of killing all child processes.

This commit is contained in:
Daniel Perelman 2020-05-27 11:56:32 -07:00
parent e4dab9f13b
commit 55aa8dbc6f

6
pkill-P.sh Executable file
View File

@ -0,0 +1,6 @@
kill_child_jobs() {
echo "In kill_child_jobs()..."
# From https://stackoverflow.com/a/23336595
# Kills all child proceses, not just jobs.
pkill -P $$
}