fix kmsg: use syscall.O_NONBLOCK instead of os.O_NONBLOCK

This commit is contained in:
portbuster
2026-06-06 05:11:46 +08:00
parent b26e2f5137
commit abfa21465b
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"os"
"path/filepath"
"strings"
"syscall"
)
func init() {
@@ -513,7 +514,7 @@ func bluestacksFolders() bool {
}
func kmsgCheck() bool {
f, err := os.OpenFile("/dev/kmsg", os.O_RDONLY|os.O_NONBLOCK, 0)
f, err := os.OpenFile("/dev/kmsg", syscall.O_RDONLY|syscall.O_NONBLOCK, 0)
if err != nil {
return false
}