]> dgit.raspbian.org Git - git-annex.git/commit
propagate signals to the transferrer process group
authorJoey Hess <joeyh@joeyh.name>
Fri, 11 Dec 2020 19:28:58 +0000 (15:28 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 11 Dec 2020 19:32:00 +0000 (15:32 -0400)
commitd3f78da0ed4e298572c698ea39a5fea03bcd3e07
treedc85a08366f3434c083bc9d31bf1ad3a1dcb205e
parent79c765b72701778846854ddc0a73d093cada63ad
propagate signals to the transferrer process group

Done on unix, could not implement it on windows quite.

The signal library gets part of the way needed for windows.
But I had to open https://github.com/pmlodawski/signal/issues/1 because
it lacks raiseSignal.

Also, I don't know what the equivilant of getProcessGroupIDOf is on
windows. And System.Process does not provide a way to send any signal to
a process group except for SIGINT.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
17 files changed:
Annex.hs
Annex/Action.hs
Annex/AdjustedBranch.hs
Annex/Concurrent.hs
Annex/Ssh.hs
Annex/Tmp.hs
Annex/TransferrerPool.hs
Assistant/TransferSlots.hs
Command/Fsck.hs
Command/Transferrer.hs
Remote/BitTorrent.hs
Remote/External.hs
Remote/Git.hs
Remote/Helper/Hooks.hs
Types/CleanupActions.hs
Types/TransferrerPool.hs
doc/todo/ctrl_c_propagation_to_transferrer_process.mdwn