funflow icon indicating copy to clipboard operation
funflow copied to clipboard

Locks are not properly cleaned up when a flow is interrupted with Ctrl-C

Open mpickering opened this issue 5 years ago • 4 comments

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 avatar Sep 21 '18 14:09 mpickering

@mpickering Did you build your executable with the threaded runtime? As I recall that is necessary for proper Ctrl-C handling.

aherrmann avatar Sep 21 '18 14:09 aherrmann

I wasn't. I will try that now.

mpickering avatar Sep 21 '18 15:09 mpickering

Still seems that there are situations when the locks are not cleaned up when compiling with -threaded.

mpickering avatar Sep 29 '18 03:09 mpickering

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.

mpickering avatar Sep 29 '18 13:09 mpickering