From b852402f67b22a3a850ce4eb1305a3ce5898d128 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 17 Mar 2026 15:48:40 +0900 Subject: ext: move syscall wrappers from container These are generally useful, and none of them are container-specific. Syscalls subtle to use and requiring container-specific setup remains in container. Signed-off-by: Ophestra --- container/mount.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'container/mount.go') diff --git a/container/mount.go b/container/mount.go index 171b210b..f6a8844f 100644 --- a/container/mount.go +++ b/container/mount.go @@ -6,6 +6,7 @@ import ( "os" . "syscall" + "hakurei.app/ext" "hakurei.app/message" "hakurei.app/vfs" ) @@ -115,7 +116,7 @@ func (p *procPaths) remount(msg message.Msg, target string, flags uintptr) error var targetKFinal string { var destFd int - if err := IgnoringEINTR(func() (err error) { + if err := ext.IgnoringEINTR(func() (err error) { destFd, err = p.k.open(targetFinal, O_PATH|O_CLOEXEC, 0) return }); err != nil { -- cgit v1.3.1