mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-04 14:25:35 -04:00
go fmt was here, no functional change
This commit is contained in:
parent
ec64c912be
commit
e0412df05d
1 changed files with 6 additions and 5 deletions
|
|
@ -3,15 +3,16 @@
|
|||
package mlock
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"golang.org/x/sys/unix"
|
||||
"syscall"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func init() {
|
||||
supported = true
|
||||
supported = true
|
||||
}
|
||||
|
||||
func lockMemory() error {
|
||||
// Mlockall prevents all current and future pages from being swapped out.
|
||||
return unix.Mlockall(syscall.MCL_CURRENT | syscall.MCL_FUTURE)
|
||||
// Mlockall prevents all current and future pages from being swapped out.
|
||||
return unix.Mlockall(syscall.MCL_CURRENT | syscall.MCL_FUTURE)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue