Sign in
go
/
vscode-go
/
ec8cfbaa4a3cbc52c1ad8edadf4eac5995198893
/
.
/
scripts
/
terminateProcess.sh
blob: 9b068843f50b9354d7c1dc3579f89853ec54822f [
file
] [
log
] [
blame
]
#!/bin/bash
terminateTree
()
{
for
cpid
in
$
(/
usr
/
bin
/
pgrep
-
P $1
);
do
terminateTree $cpid
done
kill
-
9
$1
>
/
dev
/
null
2
>&
1
}
for
pid
in
$
*;
do
terminateTree $pid
done