From 2bd1e2061761d326a139a732716d157658b6a9fb Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sun, 18 Dec 2022 16:15:53 +0100 Subject: [PATCH] doc: add fancy code comment for multi-pip expression --- wait_for_pid_exit.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wait_for_pid_exit.sh b/wait_for_pid_exit.sh index 5fbf3bc..47561bb 100644 --- a/wait_for_pid_exit.sh +++ b/wait_for_pid_exit.sh @@ -12,6 +12,11 @@ wait_for_pid_exit () { waiting=0 debug_inline "waiting for $pid to exit " + # show all pids + # | find just the $server_pid + # | | don’t match on the previous grep + # | | | we don’t need the output + # | | | | until ( ! ps ax | grep $pid | grep -v grep > /dev/null); do if [ $waiting -eq $iterations ]; then after=`expr $duration \* $iterations`