| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Sandwich.Util.Process
Synopsis
- gracefullyStopProcess :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m ()
- gracefullyWaitForProcess :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m ()
- gracefullyStopProcess' :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m StopProcessResult
- gracefullyWaitForProcess' :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m StopProcessResult
- data StopProcessResult
Documentation
gracefullyStopProcess :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m () Source #
Interrupt a process and wait for it to terminate, returning a StopProcessResult.
gracefullyWaitForProcess :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m () Source #
Wait for a process to terminate. If it doesn't terminate within gracePeriodUs microseconds,
send it an interrupt signal and wait for another gracePeriodUs microseconds.
After this time elapses send a terminate signal and wait for the process to die.
gracefullyStopProcess' :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m StopProcessResult Source #
Interrupt a process and wait for it to terminate.
gracefullyWaitForProcess' :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m StopProcessResult Source #
Wait for a process to terminate. If it doesn't terminate within gracePeriodUs microseconds,
send it an interrupt signal and wait for another gracePeriodUs microseconds.
After this time elapses send a terminate signal and wait for the process to die.
data StopProcessResult Source #
Constructors
| StoppedByItself | |
| StoppedAfterInterrupt | |
| StoppedAfterTerminate | |
| StoppedAfterKill | |
| FailedToStop |