hpath/unix/tests/processGroup001.hs
2020-04-14 11:29:56 +02:00

8 lines
214 B
Haskell

import System.Posix.Process
main = do
pgid <- getProcessGroupID
pgid' <- getProcessGroupIDOf =<< getProcessID
putStr "Testing getProcessGroupID == getProcessGroupIDOf =<< getProcessID: "
print $ pgid == pgid'