Add example of killing all child processes.
This commit is contained in:
parent
e4dab9f13b
commit
55aa8dbc6f
6
pkill-P.sh
Executable file
6
pkill-P.sh
Executable 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 $$
|
||||
}
|
Loading…
Reference in New Issue
Block a user