diff options
author | Zhaozhong Ni <nzz@google.com> | 2018-07-12 15:07:59 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-07-12 15:09:02 -0700 |
commit | 1cd46c8dd1a92dd0ad3eeb60a763278f2e98d0b4 (patch) | |
tree | 970e90306e9a146f17014c8d4ec6ebb45a5e5dd7 /pkg/sentry/kernel/timekeeper_state.go | |
parent | bb41ad808a75b8a945d82df51f0e322d98edf951 (diff) |
sentry: wait for restore clock instead of panicing in Timekeeper.
PiperOrigin-RevId: 204372296
Change-Id: If1ed9843b93039806e0c65521f30177dc8036979
Diffstat (limited to 'pkg/sentry/kernel/timekeeper_state.go')
-rw-r--r-- | pkg/sentry/kernel/timekeeper_state.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/timekeeper_state.go b/pkg/sentry/kernel/timekeeper_state.go index aee983ac7..2e7fed4d8 100644 --- a/pkg/sentry/kernel/timekeeper_state.go +++ b/pkg/sentry/kernel/timekeeper_state.go @@ -37,5 +37,5 @@ func (t *Timekeeper) beforeSave() { // afterLoad is invoked by stateify. func (t *Timekeeper) afterLoad() { - t.restored = true + t.restored = make(chan struct{}) } |