mirror of https://github.com/k3s-io/k3s.git
Update install.sh according to yamt's suggestion
parent
6d07cb47b7
commit
98410df788
|
@ -422,11 +422,9 @@ pstree() {
|
|||
for pid in $@; do
|
||||
echo $pid
|
||||
# Find and show pstree for child processes of $pid
|
||||
while read parent child; do
|
||||
$(ps -o ppid= -o pid=) | while read parent child; do
|
||||
[ $parent -ne $pid ] || pstree $child
|
||||
done <<-EOF
|
||||
$(ps -o ppid= -o pid=)
|
||||
EOF;
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue