scripts: net: Properly return Zephyr exit code to script
Save the exit code from 'wait' so that it is not lost when PID is set to zero. Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
907dede475
commit
26685b727b
1 changed files with 5 additions and 0 deletions
|
@ -204,10 +204,15 @@ stop_zephyr ()
|
|||
|
||||
wait_zephyr ()
|
||||
{
|
||||
local result=""
|
||||
|
||||
echo "Waiting for Zephyr $zephyr_pid..."
|
||||
wait $zephyr_pid
|
||||
result=$?
|
||||
|
||||
zephyr_pid=0
|
||||
|
||||
return $result
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue