aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/system.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/system.go')
-rw-r--r--system/system.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/system.go b/system/system.go
index 1a653636..134e7cee 100644
--- a/system/system.go
+++ b/system/system.go
@@ -70,7 +70,7 @@ func New(ctx context.Context, uid int) (sys *I) {
if ctx == nil || uid < 0 {
panic("invalid call to New")
}
- return &I{ctx: ctx, uid: uid}
+ return &I{ctx: ctx, uid: uid, syscallDispatcher: direct{}}
}
// An I provides deferred operating system interaction. [I] must not be copied.
@@ -86,6 +86,8 @@ type I struct {
committed bool
// the behaviour of Revert is only defined for up to one call
reverted bool
+
+ syscallDispatcher
}
func (sys *I) UID() int { return sys.uid }