On 2016-01-28 at 22:38 ron minnich <[email protected]> wrote:
> 30 seconds with strace and dropbear and I've got it: dropbear opens
> #cons/urandom and tries to select on it. So, fix is easy for now:
> spawn a process to read /dev/urandom, and select on the pipe.
> 
> Or, well, hmm. Implement taps on #cons? Barret?

is it trying non-blocking I/O on urandom?  our urandom actually doesn't
block (IIRC), so they might be just selecting immediately.

if you need to select on it, rather than putting taps into #cons, maybe
we could make a #random device and put the taps into that.  it'd be
cleaner than having urandom in #cons anyway, and we can figure out how
exactly to tap it in an isolated manner.

we'd still have some issues.  taps fire on edge events, like a queue
going from empty to non-empty.  if that edge never happens, like with
something that never blocks in the first place (the current
#cons/urandom), then the tap would never fire.

barret

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to