From 1a7b909f971dee8c215cf1877cd95a3d690730e1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 18 Oct 2026 20:33:03 +0900 Subject: internal/system: file-based big lock Simultaneous commits or reverts can race if they have overlapping targets. This big lock synchronises entry into the Commit and Revert critical sections across all cmd/hakurei processes. Signed-off-by: Ophestra --- internal/system/dispatcher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/system/dispatcher_test.go') diff --git a/internal/system/dispatcher_test.go b/internal/system/dispatcher_test.go index dd42b965..bfb8df72 100644 --- a/internal/system/dispatcher_test.go +++ b/internal/system/dispatcher_test.go @@ -208,7 +208,7 @@ func checkOpMeta(t *testing.T, testCases []opMetaTestCase) { // InternalNew initialises [I] with a stub syscallDispatcher. func InternalNew(t *testing.T, want stub.Expect, uid int) (*I, *stub.Stub[syscallDispatcher]) { k := &kstub{stub.New(t, func(s *stub.Stub[syscallDispatcher]) syscallDispatcher { return &kstub{s} }, want)} - sys := New(t.Context(), k, uid) + sys := New(t.Context(), k, uid, nil) sys.syscallDispatcher = k return sys, k.Stub } -- cgit v1.3.1