summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux/sys_timer.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2020-02-04 13:05:30 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-04 13:27:39 -0800
commit6823b5e244a5748032130574ae3a25a0a36bbbf5 (patch)
treeaa52bd1ad65c22f2c21c4ad396e15070a4cfb7d0 /pkg/sentry/syscalls/linux/sys_timer.go
parentc5d4041623ac6405135e966af6d06c178a86870d (diff)
timer_create(2) should return 0 on success
The timer ID is copied out to the argument. Fixes #1738 PiperOrigin-RevId: 293210801
Diffstat (limited to 'pkg/sentry/syscalls/linux/sys_timer.go')
-rw-r--r--pkg/sentry/syscalls/linux/sys_timer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/sys_timer.go b/pkg/sentry/syscalls/linux/sys_timer.go
index 432351917..a4c400f87 100644
--- a/pkg/sentry/syscalls/linux/sys_timer.go
+++ b/pkg/sentry/syscalls/linux/sys_timer.go
@@ -146,7 +146,7 @@ func TimerCreate(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.S
return 0, nil, err
}
- return uintptr(id), nil, nil
+ return 0, nil, nil
}
// TimerSettime implements linux syscall timer_settime(2).