diff options
author | tv <tv@shackspace.de> | 2014-11-03 19:59:44 +0000 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-11-03 19:59:44 +0000 |
commit | 7a9aac48f2fce05bd6fd8daf9cb3a52098a841eb (patch) | |
tree | 80d03b045c15567ad0e73cd8a852eadb4dbb3b5b /CGroup.hs | |
parent | d16a7dcba44fe7f506987f46527409504f119d08 (diff) |
Reduce redundancy in CGroup documentation.
Diffstat (limited to 'CGroup.hs')
-rw-r--r-- | CGroup.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |