anlsys / libnrm

Node Resource Manager communication library
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

signal handling in sensors/actuators #75

Closed perarnau closed 1 year ago

perarnau commented 1 year ago

Sensor and actuator binaries are mostly loops where the program sleeps while waiting for the time of a new sample, or should exit because of a signal.

We don't currently handle this gracefully. dummy-extra and the others don't really clean up on exit, because we SIGKILL them. It would be better to handle a sigaction for each, allowing the loop to exit and the program to cleanly close sockets.

This might also fix a bunch of transient issues with make check.