funflow
funflow copied to clipboard
Locks are not properly cleaned up when a flow is interrupted with Ctrl-C
I have observed several times that after interrupting a flow that restarting it will lead to no output and the process hanging. I noticed that there were still some lock files which hadn't been deleted in store/lock
so I deleted those and things started working again.
@mpickering Did you build your executable with the threaded runtime? As I recall that is necessary for proper Ctrl-C handling.
I wasn't. I will try that now.
Still seems that there are situations when the locks are not cleaned up when compiling with -threaded
.
Perhaps there is also a problem with the pending-*
files not being cleaned, I found about 400 of these in the store after exiting a run. It seems that these should be cleaned as well? I haven't studied the store model in detail though.