-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove memory lock OS specific implementation
Signed-off-by: Anubhab Majumdar <[email protected]>
- Loading branch information
1 parent
cbe28cf
commit 782ac4e
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package legacy | ||
|
||
import "github.com/cilium/ebpf/rlimit" | ||
|
||
func (d *Daemon) RemoveMemlock() error { | ||
return rlimit.RemoveMemlock() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package legacy | ||
|
||
func (d *Daemon) RemoveMemlock() error { | ||
// This function is a no-op on Windows. | ||
return nil | ||
} |