summaryrefslogtreecommitdiffstats
path: root/CGroup.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-11-03 19:59:44 +0000
committertv <tv@shackspace.de>2014-11-03 19:59:44 +0000
commit7a9aac48f2fce05bd6fd8daf9cb3a52098a841eb (patch)
tree80d03b045c15567ad0e73cd8a852eadb4dbb3b5b /CGroup.hs
parentd16a7dcba44fe7f506987f46527409504f119d08 (diff)
Reduce redundancy in CGroup documentation.
Diffstat (limited to 'CGroup.hs')
-rw-r--r--CGroup.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/CGroup.hs b/CGroup.hs
index 399ec84..11b54cd 100644
--- a/CGroup.hs
+++ b/CGroup.hs
@@ -25,19 +25,19 @@ import System.IO.Streams.Attoparsec (parseFromStream)
import System.IO.Streams.File (withFileAsInput)
--- | @'createCGroup' g@ creates a new cgroup @g@.
+-- | Create a new cgroup.
createCGroup :: CGroup -> IO ()
createCGroup =
createDirectory . cgroupPath
--- | @'classifyTask' g pid@ places task @pid@ into cgroup @g@.
+-- | Places a task into a cgroup.
classifyTask :: ProcessID -> CGroup -> IO ()
classifyTask pid g =
writeFile (tasksFile g) (show pid)
--- | @'listTasks' g@ returns tasks of cgroup @g@.
+-- | Retrieve the tasks of a cgroup.
listTasks :: CGroup -> IO (Set ProcessID)
listTasks g =
withFileAsInput (tasksFile g) $ parseFromStream tasksParser