mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
Don't kill if jmavsim not found.
This commit is contained in:
+6
-1
@@ -20,7 +20,12 @@ fi
|
||||
# kill process names that might stil
|
||||
# be running from last time
|
||||
pkill mainapp
|
||||
kill -9 `jps | grep Simulator | cut -d" " -f1`
|
||||
jmavsim_pid=`jps | grep Simulator | cut -d" " -f1`
|
||||
echo jmavsim_pid=\"${jmavsim_pid}\"
|
||||
if [ -n "$jmavsim_pid" ]
|
||||
then
|
||||
kill $jmavsim_pid
|
||||
fi
|
||||
|
||||
cp Tools/posix_lldbinit $build_path/src/firmware/posix/.lldbinit
|
||||
cp Tools/posix.gdbinit $build_path/src/firmware/posix/.gdbinit
|
||||
|
||||
Reference in New Issue
Block a user