Skip to content

Commit

Permalink
samples/pktgen: Trap SIGINT
Browse files Browse the repository at this point in the history
Otherwise ^C stops the script, not just pktgen.

Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
bwh-ct authored and davem330 committed Feb 24, 2015
1 parent db72aba commit 16b5d0c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-1-1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-1-1-flows
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-1-1-ip6
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-1-1-ip6-rdos
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-1-1-rdos
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-1-2
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-2-1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions samples/pktgen/pktgen.conf-2-2
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 16b5d0c

Please sign in to comment.