aboutsummaryrefslogtreecommitdiff
path: root/example/ipsec_api/odp_ipsec_api_run_router.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example/ipsec_api/odp_ipsec_api_run_router.sh')
-rwxr-xr-xexample/ipsec_api/odp_ipsec_api_run_router.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ipsec_api/odp_ipsec_api_run_router.sh b/example/ipsec_api/odp_ipsec_api_run_router.sh
index 79a0ef5c6..198721ea0 100755
--- a/example/ipsec_api/odp_ipsec_api_run_router.sh
+++ b/example/ipsec_api/odp_ipsec_api_run_router.sh
@@ -29,8 +29,6 @@ PID=app_pid
-r 192.168.222.2/32,$IF1,$NEXT_HOP_MAC1 \
-c 1 "$@" & echo $! > $PID) | tee -a $LOG &
-APP_PID=`cat $PID`
-
# Wait till application thread starts.
APP_READY="Pktio thread \[..\] starts"
@@ -44,6 +42,8 @@ tail -f $LOG | grep -qm 1 "$APP_READY"
validate_result
ret=$?
+APP_PID=`cat $PID`
+
kill -2 ${APP_PID}
# Wait till the application stops