UnifyFS
UnifyFS copied to clipboard
catch signals for clean termination
If a job gets terminated by the system (wall time, etc.) we currently leave stale state behind. We should catch SIGTERM and friends and cleanly terminate the server/client.
Not sure we can install a SIGTERM handler for the client library. I'm working on that for the server though.
PR #293 adds the signal handler for the server.
Now the open question is what to do in the client library. Installing signal handlers from a shared library is bad practice, so what other options do we have?