diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-10-01 19:25:23 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-01 19:25:23 +0000 |
commit | 63542c54527c47597e7b92fa4289f80ef1bfb9b5 (patch) | |
tree | 856176e13ec8cc867f0a245f25ec0d6d9f01dd52 /pkg/sentry/kernel/posixtimer.go | |
parent | 883e7cdc91384dbe21c8ea32eb77a9463d84787a (diff) | |
parent | dd69b49ed1103bab82a6b2ac95221b89b46f3376 (diff) |
Merge release-20190806.1-221-gdd69b49 (automated)
Diffstat (limited to 'pkg/sentry/kernel/posixtimer.go')
-rw-r--r-- | pkg/sentry/kernel/posixtimer.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkg/sentry/kernel/posixtimer.go b/pkg/sentry/kernel/posixtimer.go index c5d095af7..2e861a5a8 100644 --- a/pkg/sentry/kernel/posixtimer.go +++ b/pkg/sentry/kernel/posixtimer.go @@ -117,9 +117,9 @@ func (it *IntervalTimer) signalRejectedLocked() { } // Notify implements ktime.TimerListener.Notify. -func (it *IntervalTimer) Notify(exp uint64) { +func (it *IntervalTimer) Notify(exp uint64, setting ktime.Setting) (ktime.Setting, bool) { if it.target == nil { - return + return ktime.Setting{}, false } it.target.tg.pidns.owner.mu.RLock() @@ -129,7 +129,7 @@ func (it *IntervalTimer) Notify(exp uint64) { if it.sigpending { it.overrunCur += exp - return + return ktime.Setting{}, false } // sigpending must be set before sendSignalTimerLocked() so that it can be @@ -148,6 +148,8 @@ func (it *IntervalTimer) Notify(exp uint64) { if err := it.target.sendSignalTimerLocked(si, it.group, it); err != nil { it.signalRejectedLocked() } + + return ktime.Setting{}, false } // Destroy implements ktime.TimerListener.Destroy. Users of Timer should call |