UnifyFS icon indicating copy to clipboard operation
UnifyFS copied to clipboard

catch signals for clean termination

Open boehms opened this issue 6 years ago • 2 comments

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.

boehms avatar Mar 14 '19 13:03 boehms

Not sure we can install a SIGTERM handler for the client library. I'm working on that for the server though.

MichaelBrim avatar Mar 14 '19 14:03 MichaelBrim

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?

MichaelBrim avatar Mar 21 '19 16:03 MichaelBrim