diff --git a/sys/oom_unix.go b/sys/oom_linux.go similarity index 98% rename from sys/oom_unix.go rename to sys/oom_linux.go index e5b8dbcef..f24e9af97 100644 --- a/sys/oom_unix.go +++ b/sys/oom_linux.go @@ -1,5 +1,3 @@ -// +build !windows - /* Copyright The containerd Authors. diff --git a/sys/oom_unix_test.go b/sys/oom_linux_test.go similarity index 99% rename from sys/oom_unix_test.go rename to sys/oom_linux_test.go index e6be852bc..2b824eb70 100644 --- a/sys/oom_unix_test.go +++ b/sys/oom_linux_test.go @@ -1,5 +1,3 @@ -// +build !windows - /* Copyright The containerd Authors. diff --git a/sys/oom_windows.go b/sys/oom_unsupported.go similarity index 86% rename from sys/oom_windows.go rename to sys/oom_unsupported.go index 215c171f6..558340790 100644 --- a/sys/oom_windows.go +++ b/sys/oom_unsupported.go @@ -1,3 +1,5 @@ +// +build !linux + /* Copyright The containerd Authors. @@ -17,7 +19,9 @@ package sys const ( - // OOMScoreAdjMax is not implemented on Windows + // OOMScoreMaxKillable is not implemented on non Linux + OOMScoreMaxKillable = 0 + // OOMScoreAdjMax is not implemented on non Linux OOMScoreAdjMax = 0 )