Closed krihal closed 8 months ago
If you kill the parent process, the pyapi should get a closed socket or a message with length 0. If this is detected, the pyapi should close. This seems to work fine in a c-service:
olof@alarik> ps jax --sort=uid,-ppid,+pid | grep -v grep| grep clixon
3401 1798369 1798369 1798369 ? -1 Ss 0 0:01 clixon_backend -s startup -f /var/tmp/./test-c-service.sh/controller.xml -D 0
1798369 1798370 1798369 1798369 ? -1 S 1001 0:00 /usr/local/bin/clixon_controller_service -f /var/tmp/./test-c-service.sh/controller.xml -D 1 -lf/tmp/service.log
olof@alarik> sudo kill -9 1798369
olof@alarik> ps jax --sort=uid,-ppid,+pid | grep -v grep| grep clixon
olof@alarik>
Assign to @krihal
Should be handled in some way, either by PyAPI or backend.