From aa5bd14faeb5eb5e671d473df32de49a86584d37 Mon Sep 17 00:00:00 2001 From: Takashi Mori Date: Wed, 3 Jul 2024 13:27:58 +0900 Subject: [PATCH] add process exit --- hakoniwa/drone-app.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hakoniwa/drone-app.bash b/hakoniwa/drone-app.bash index d08dde28..40a6ae3b 100644 --- a/hakoniwa/drone-app.bash +++ b/hakoniwa/drone-app.bash @@ -1,4 +1,5 @@ #!/bin/bash +trap 'kill 0' EXIT if [ $# -ne 2 ] then @@ -28,7 +29,7 @@ else activate_master fi -cmake-build/src/hako-px4sim 127.0.0.1 4560 ext +cmake-build/src/hako-px4sim 127.0.0.1 4560 ext & if [ -z $HAKO_MASTER_DISABLE ] then @@ -41,4 +42,5 @@ else echo " try executing the 'reset' command to resolve the issue." fi +wait exit 0