change comment about wait function

This commit is contained in:
2024-11-04 10:33:56 +01:00
parent b37bc30549
commit 1c0b61eae2

View File

@@ -612,7 +612,8 @@ while :; do
else else
wait $pid &>/dev/null wait $pid &>/dev/null
rc=$? rc=$?
# the wait function in older Bash versions always returns 127 if the sub-proc already exited # the wait function in older Bash versions prior to 5.1 always returns 127 if
# the sub-process already exited at this point
(( rc == 127 )) && rc=0 (( rc == 127 )) && rc=0
fi fi
echo "gather: $func (PID $pid, FD $fd) exited with rc = $rc" >&$DEBUGLOG echo "gather: $func (PID $pid, FD $fd) exited with rc = $rc" >&$DEBUGLOG