mirror of
https://github.com/cuberite/polarssl.git
synced 2025-08-21 11:36:28 -04:00
Remove Terminated message from stdout
Under Ubuntu-22.04, wait command prints out Terminated message if the process has been killed by kill command. This messes up the output in compat.sh Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
1d671c90db
commit
d2ad200ff9
@ -1129,11 +1129,13 @@ wait_client_done() {
|
|||||||
( sleep "$DOG_DELAY"; echo "TIMEOUT" >> $CLI_OUT; kill $CLI_PID ) &
|
( sleep "$DOG_DELAY"; echo "TIMEOUT" >> $CLI_OUT; kill $CLI_PID ) &
|
||||||
WATCHDOG_PID=$!
|
WATCHDOG_PID=$!
|
||||||
|
|
||||||
wait $CLI_PID
|
# For Ubuntu 22.04, `Terminated` message is outputed by wait command.
|
||||||
|
# To remove it from stdout, redirect stdout/stderr to CLI_OUT
|
||||||
|
wait $CLI_PID >> $CLI_OUT 2>&1
|
||||||
EXIT=$?
|
EXIT=$?
|
||||||
|
|
||||||
kill $WATCHDOG_PID
|
kill $WATCHDOG_PID >/dev/null 2>&1
|
||||||
wait $WATCHDOG_PID
|
wait $WATCHDOG_PID >> $CLI_OUT 2>&1
|
||||||
|
|
||||||
echo "EXIT: $EXIT" >> $CLI_OUT
|
echo "EXIT: $EXIT" >> $CLI_OUT
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user