calyx icon indicating copy to clipboard operation
calyx copied to clipboard

[Fud2 | Request] Cleanup the work directory on SIGINT

Open EclecticGriffin opened this issue 1 year ago • 1 comments
trafficstars

I run into this issue a bunch when I'm running runt tests and kill the execution with CTRL-C since doing so leaves all the work directories lying around. I am not certain that runt will propagate the SIGINT but fud2 should still probably react appropriately when it receives one.

EclecticGriffin avatar Jun 17 '24 18:06 EclecticGriffin

Thanks; this is a good idea. I'm not 100% sure how to do this, but I think we probably want to handle SIGINT with signal-hook and somehow access some sort of mutable global state to find out if there is something to clean up. Then, we'll want to make sure that the Ninja subprocess also gets terminated when we then immediately exit.

sampsyo avatar Jun 19 '24 15:06 sampsyo