git-annex/Types/CleanupActions.hs
Joey Hess d3f78da0ed
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.
2020-12-11 15:32:00 -04:00

27 lines
507 B
Haskell

{- Enumeration of cleanup actions
-
- Copyright 2014-2020 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
module Types.CleanupActions where
import Types.UUID
import Utility.Url
import System.Process (Pid)
data CleanupAction
= RemoteCleanup UUID
| StopHook UUID
| FsckCleanup
| SshCachingCleanup
| AdjustedBranchUpdate
| TorrentCleanup URLString
| OtherTmpCleanup
deriving (Eq, Ord)
data SignalAction
= PropagateSignalProcessGroup Pid
deriving (Eq, Ord)