sandwich-0.2.2.0: Yet another test framework for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Sandwich.Util.Process

Synopsis

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.