Skip to content

Commit 29da22c

Browse files
Merge pull request #34 from dnephin/document-err-mem-not-supported
Update doc for OOMEventFD
2 parents f7dd103 + 7a551d7 commit 29da22c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cgroup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ func (c *cgroup) Thaw() error {
310310
}
311311

312312
// OOMEventFD returns the memory cgroup's out of memory event fd that triggers
313-
// when processes inside the cgroup receive an oom event
313+
// when processes inside the cgroup receive an oom event. Returns
314+
// ErrMemoryNotSupported if memory cgroups is not supported.
314315
func (c *cgroup) OOMEventFD() (uintptr, error) {
315316
c.mu.Lock()
316317
defer c.mu.Unlock()

0 commit comments

Comments
 (0)