1
0
포크 0

Do not check for (host) vsyscall support on the non-Linux systems

Fixes #19
timestamps
dump_stack() 2019-12-25 14:36:32 +00:00
부모 9e1d71d1b2
커밋 d58226c22c
로그인 계정: dump_stack
GPG 키 ID: BE44DA8C062D87DC
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -15,6 +15,7 @@ import (
"os/exec"
"os/user"
"regexp"
"runtime"
"strings"
"time"
@ -99,6 +100,14 @@ func dockerImagePath(sk config.KernelMask) (path string, err error) {
}
func vsyscallAvailable() (available bool, err error) {
if runtime.GOOS != "linux" {
// Docker for non-Linux systems is not using the host
// kernel but uses kernel inside a virtual machine, so
// it builds by the Docker team with vsyscall support.
available = true
return
}
buf, err := ioutil.ReadFile("/proc/self/maps")
if err != nil {
return