mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -04:00
add license, move folders
This commit is contained in:
parent
185cc74060
commit
271c4a46a1
132 changed files with 21 additions and 0 deletions
13
sandbox/kinda-safe-godot/list_child_processes.sh
Normal file
13
sandbox/kinda-safe-godot/list_child_processes.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
extract_child_pid() {
|
||||
echo "$(ps --ppid $1)" | grep -oE '^[[:space:]]*[0-9]+' | awk '{print $1}'
|
||||
}
|
||||
|
||||
pid=$1
|
||||
while [[ -n "$pid" ]]; do
|
||||
pid=$(extract_child_pid "$pid")
|
||||
if [[ -n "$pid" ]]; then
|
||||
echo "$pid"
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue