If a signal handler runs during select() loop in clixon_event_loop() and unless the signal handler sets clixon_exit, the select will be restarted.
This commit is contained in:
parent
c509868345
commit
d5edd64257
5 changed files with 40 additions and 5 deletions
|
|
@ -136,6 +136,9 @@ if [ -z "$ps" ]; then
|
|||
err "A restconf running"
|
||||
fi
|
||||
|
||||
new "try restconf rpc"
|
||||
expectpart "$(curl $CURLOPTS -X POST -H "Content-Type: application/yang-data+json" $RCPROTO://localhost/restconf/operations/clixon-lib:process-control -d '{"clixon-lib:input":{"name":"restconf","operation":"status"}}')" 0 "HTTP/1.1 200 OK" '{"clixon-lib:output":{"pid":'
|
||||
|
||||
new "stop restconf RPC"
|
||||
pid=$(testrpc stop 0)
|
||||
if [ $? -ne 0 ]; then echo "$pid";exit -1; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue