hpath/unix/tests/processGroup001.hs

8 lines
214 B
Haskell
Raw Normal View History

2020-04-14 09:27:28 +00:00
import System.Posix.Process
main = do
pgid <- getProcessGroupID
pgid' <- getProcessGroupIDOf =<< getProcessID
putStr "Testing getProcessGroupID == getProcessGroupIDOf =<< getProcessID: "
print $ pgid == pgid'