restconf fcgi mem leak in indata

test pkill needs sleep before name settles
This commit is contained in:
Olof hagsand 2021-06-27 16:32:10 +02:00
parent df05acdc9e
commit 3539a80d5e
6 changed files with 19 additions and 10 deletions

View file

@ -382,9 +382,10 @@ function stop_restconf_pre(){
}
# Stop restconf daemon after test
# Two caveats in pkill:
# Some problems with pkill:
# 1) Dont use $clixon_restconf (dont work in valgrind)
# 2) Dont use -u $WWWUSER since clixon_restconf may drop privileges.
# 3) After fork, it seems to take some time before name is right
function stop_restconf(){
sudo pkill -f clixon_restconf
if [ $valgrindtest -eq 3 ]; then