Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 168 Bytes

kill-all-child-processes.md

File metadata and controls

3 lines (2 loc) · 168 Bytes

Killing all child processes

pkill -TERM -P 1234 where 1234 is the parent process or CPIDS=$(pgrep -P 1234); (sleep 33 && kill -KILL $CPIDS &); kill -TERM $CPIDS