Commit 16b5d0c4 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

samples/pktgen: Trap SIGINT

Otherwise ^C stops the script, not just pktgen.
Signed-off-by: default avatarBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db72aba3
......@@ -53,6 +53,7 @@ PGDEV=/proc/net/pktgen/eth1
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
......@@ -61,6 +61,7 @@ PGDEV=/proc/net/pktgen/eth1
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
......@@ -54,6 +54,7 @@ PGDEV=/proc/net/pktgen/eth1
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
......@@ -57,6 +57,7 @@ PGDEV=/proc/net/pktgen/eth1
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
......@@ -58,6 +58,7 @@ PGDEV=/proc/net/pktgen/eth1
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
......@@ -63,6 +63,7 @@ PGDEV=/proc/net/pktgen/eth2
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
......@@ -60,6 +60,7 @@ PGDEV=/proc/net/pktgen/eth1
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
......@@ -67,6 +67,7 @@ PGDEV=/proc/net/pktgen/eth2
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
trap true INT
pgset "start"
echo "Done"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment