summaryrefslogtreecommitdiff
path: root/src/cpu/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/kvm')
-rw-r--r--src/cpu/kvm/timer.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cpu/kvm/timer.cc b/src/cpu/kvm/timer.cc
index e1f74a552..03cdea6fb 100644
--- a/src/cpu/kvm/timer.cc
+++ b/src/cpu/kvm/timer.cc
@@ -59,8 +59,11 @@ PosixKvmTimer::PosixKvmTimer(int signo, clockid_t clockID,
sev.sigev_notify = SIGEV_SIGNAL;
sev.sigev_signo = signo;
sev.sigev_value.sival_ptr = NULL;
- if (timer_create(clockID, &sev, &timer) == -1)
- panic("timer_create");
+
+ while (timer_create(clockID, &sev, &timer) == -1) {
+ if (errno != EAGAIN)
+ panic("timer_create: %i", errno);
+ }
}
PosixKvmTimer::~PosixKvmTimer()