summaryrefslogtreecommitdiff
path: root/Control/Concurrent/Go.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-04-15 15:32:22 -0400
committerBen Sima <ben@bsima.me>2024-04-15 16:00:53 -0400
commitbceac781e4505a6e2089621012deee449fe62b11 (patch)
treee212313994515b101ea371d323004f4c4bd44541 /Control/Concurrent/Go.hs
parentde41131cb6b462946caaec9a9a87767441081474 (diff)
Cleanup build processes on timeout
On timeout, bild would leave it's child processes still running, which means that a long build would continue to go in the background, and I'd have to manually find and kill it. The fix was simply to use Conduit's `closeStreamingProcessHandle` function, and make sure that Conduit created a group for the processes (by default it doesn't). I tested this by building and running `bild` with a very low timeout (1 minute) and watching `gotop` to make sure it stopped the active build process. I couldn't figure out a simple way to test this automatically.
Diffstat (limited to 'Control/Concurrent/Go.hs')
0 files changed, 0 insertions, 0 deletions