diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2015-02-24 02:33:08 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-23 22:04:21 -0500 |
commit | 16b5d0c4a24c793ca3584ca5c50fd5f8f2166120 (patch) | |
tree | 9da3c9b262e675dc8be5afd0e5e7f877363ead81 /samples/pktgen/pktgen.conf-1-2 | |
parent | db72aba30a4f4c15eb20066f1d9c1bcbcf419236 (diff) | |
download | linux-stable-16b5d0c4a24c793ca3584ca5c50fd5f8f2166120.tar.gz linux-stable-16b5d0c4a24c793ca3584ca5c50fd5f8f2166120.tar.bz2 linux-stable-16b5d0c4a24c793ca3584ca5c50fd5f8f2166120.zip |
samples/pktgen: Trap SIGINT
Otherwise ^C stops the script, not just pktgen.
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/pktgen/pktgen.conf-1-2')
-rwxr-xr-x | samples/pktgen/pktgen.conf-1-2 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/pktgen/pktgen.conf-1-2 b/samples/pktgen/pktgen.conf-1-2 index b519dab262ce..f151e85c536a 100755 --- a/samples/pktgen/pktgen.conf-1-2 +++ b/samples/pktgen/pktgen.conf-1-2 @@ -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" |