Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Test.Sandwich.Util.Process
Synopsis
- gracefullyStopProcess :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m ()
- gracefullyWaitForProcess :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m ()
Documentation
gracefullyStopProcess :: (MonadIO m, MonadLogger m) => ProcessHandle -> Int -> m () Source #
Interrupt a process and wait for it to terminate.
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.