diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-18 20:33:03 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-18 20:33:37 +0900 |
| commit | 1a7b909f971dee8c215cf1877cd95a3d690730e1 (patch) | |
| tree | ef27df23f8fcfb9ff770d69181a76efeb0d8c554 /internal/system/dispatcher_test.go | |
| parent | 9eb09ee7556cea7b9c138e4a3bfa1692f95347a5 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/system/dispatcher_test.go')
| -rw-r--r-- | internal/system/dispatcher_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
