mirror of https://github.com/k3s-io/k3s
parent
2b5eff7237
commit
ce388e3788
|
@ -456,7 +456,7 @@ pstree() {
|
||||||
for pid in $@; do
|
for pid in $@; do
|
||||||
echo $pid
|
echo $pid
|
||||||
# Find and show pstree for child processes of $pid
|
# Find and show pstree for child processes of $pid
|
||||||
$(ps -o ppid= -o pid=) | while read parent child; do
|
ps -o ppid= -o pid= | while read parent child; do
|
||||||
[ $parent -ne $pid ] || pstree $child
|
[ $parent -ne $pid ] || pstree $child
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue