| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
| Description | ||||||||||||||||
| POSIX process support | ||||||||||||||||
| Synopsis | ||||||||||||||||
| Processes | ||||||||||||||||
| Forking and executing | ||||||||||||||||
| forkProcess :: IO () -> IO ProcessID | ||||||||||||||||
| forkProcess corresponds to the POSIX fork system call. The IO action passed as an argument is executed in the child process; no other threads will be copied to the child process. On success, forkProcess returns the child's ProcessID to the parent process; in case of an error, an exception is thrown. | ||||||||||||||||
| executeFile :: FilePath -> Bool -> [String] -> Maybe [(String, String)] -> IO () | ||||||||||||||||
| Exiting | ||||||||||||||||
| exitImmediately :: ExitCode -> IO () | ||||||||||||||||
| Process environment | ||||||||||||||||
| getProcessID :: IO ProcessID | ||||||||||||||||
| getParentProcessID :: IO ProcessID | ||||||||||||||||
| getProcessGroupID :: IO ProcessGroupID | ||||||||||||||||
| Process groups | ||||||||||||||||
| createProcessGroup :: ProcessID -> IO ProcessGroupID | ||||||||||||||||
| joinProcessGroup :: ProcessGroupID -> IO () | ||||||||||||||||
| setProcessGroupID :: ProcessID -> ProcessGroupID -> IO () | ||||||||||||||||
| Sessions | ||||||||||||||||
| createSession :: IO ProcessGroupID | ||||||||||||||||
| Process times | ||||||||||||||||
| data ProcessTimes | ||||||||||||||||
| ||||||||||||||||
| getProcessTimes :: IO ProcessTimes | ||||||||||||||||
| Scheduling priority | ||||||||||||||||
| nice :: Int -> IO () | ||||||||||||||||
| getProcessPriority :: ProcessID -> IO Int | ||||||||||||||||
| getProcessGroupPriority :: ProcessGroupID -> IO Int | ||||||||||||||||
| getUserPriority :: UserID -> IO Int | ||||||||||||||||
| setProcessPriority :: ProcessID -> Int -> IO () | ||||||||||||||||
| setProcessGroupPriority :: ProcessGroupID -> Int -> IO () | ||||||||||||||||
| setUserPriority :: UserID -> Int -> IO () | ||||||||||||||||
| Process status | ||||||||||||||||
| data ProcessStatus | ||||||||||||||||
| ||||||||||||||||
| getProcessStatus :: Bool -> Bool -> ProcessID -> IO (Maybe ProcessStatus) | ||||||||||||||||
| getAnyProcessStatus :: Bool -> Bool -> IO (Maybe (ProcessID, ProcessStatus)) | ||||||||||||||||
| getGroupProcessStatus :: Bool -> Bool -> ProcessGroupID -> IO (Maybe (ProcessID, ProcessStatus)) | ||||||||||||||||
| Produced by Haddock version 0.7 | ||||||||||||||||