Skip to content

Commit 1599b21

Browse files
Shannon Nelsondavem330
authored andcommitted
selftests: rtnetlink: hide complaint from terminated monitor
Set up the "ip xfrm monitor" subprogram so as to not see a "Terminated" message when the subprogram is killed. Fixes: 5e596ee ("selftests: add xfrm state-policy-monitor to rtnetlink.sh") Reported-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3f6c65d commit 1599b21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/testing/selftests/net/rtnetlink.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,7 @@ kci_test_ipsec()
535535

536536
# start the monitor in the background
537537
tmpfile=`mktemp ipsectestXXX`
538-
ip x m > $tmpfile &
539-
mpid=$!
538+
mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null`
540539
sleep 0.2
541540

542541
ipsecid="proto esp src $srcip dst $dstip spi 0x07"

0 commit comments

Comments
 (0)