1
0
kill-child-jobs/test/wait_for_pid_exit.sh

9 lines
121 B
Bash
Executable File

#!/bin/sh
echo "Starting child $1..."
while kill -0 "$2" 2>/dev/null
do
sleep 0.01s
done
echo "$1 outlived parent."