summaryrefslogtreecommitdiff
path: root/samples/pktgen/pktgen_sample05_flow_per_thread.sh
diff options
context:
space:
mode:
Diffstat (limited to 'samples/pktgen/pktgen_sample05_flow_per_thread.sh')
-rwxr-xr-xsamples/pktgen/pktgen_sample05_flow_per_thread.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/samples/pktgen/pktgen_sample05_flow_per_thread.sh b/samples/pktgen/pktgen_sample05_flow_per_thread.sh
index 3578d0aa4ac5..bcbc386b2284 100755
--- a/samples/pktgen/pktgen_sample05_flow_per_thread.sh
+++ b/samples/pktgen/pktgen_sample05_flow_per_thread.sh
@@ -16,6 +16,10 @@ root_check_run_with_sudo "$@"
# Parameter parsing via include
source ${basedir}/parameters.sh
+
+# Trap EXIT first
+trap_exit
+
# Set some default params, if they didn't get set
if [ -z "$DEST_IP" ]; then
[ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1"