Add oom notifications and pid to create response
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
ec31245f54
commit
76cf593212
13 changed files with 269 additions and 128 deletions
|
@ -363,6 +363,10 @@ func (c *libcontainerContainer) RemoveProcess(pid int) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (c *libcontainerContainer) OOM() (<-chan struct{}, error) {
|
||||
return c.c.NotifyOOM()
|
||||
}
|
||||
|
||||
func NewRuntime(stateDir string) (runtime.Runtime, error) {
|
||||
f, err := libcontainer.New(stateDir, libcontainer.Cgroupfs, func(l *libcontainer.LinuxFactory) error {
|
||||
//l.CriuPath = context.GlobalString("criu")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue