diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-17 22:38:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-17 22:38:06 +0000 |
commit | bd5c137a17928fbc850340bcc7a9f650136d6dba (patch) | |
tree | f16db3b1e2370f132e77151affa1545983b6ea8e /sys/arch/sparc64 | |
parent | 43d6d82781747cee79df80851accee32f31422e2 (diff) |
If the hypervisor call that fetches randomness returns EWOULDBLOCK,
reschedule the timeout again instead of complaining.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/vrng.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vrng.c b/sys/arch/sparc64/dev/vrng.c index c654cbe2e1f..0c5b55df8e4 100644 --- a/sys/arch/sparc64/dev/vrng.c +++ b/sys/arch/sparc64/dev/vrng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vrng.c,v 1.2 2009/01/17 19:24:51 kettenis Exp $ */ +/* $OpenBSD: vrng.c,v 1.3 2009/01/17 22:38:05 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -152,7 +152,7 @@ vrng_rnd(void *v) add_true_randomness(rnd); add_true_randomness(rnd >> 32); } - if (err != H_EOK) + if (err != H_EOK && err != H_EWOULDBLOCK) printf("vrng_rnd: err = %d\n", err); else timeout_add(&sc->sc_to, 1); |