mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Update install.sh according to yamt's suggestion
This commit is contained in:
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
Block a user