Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 1995 11:23:55 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, mark@grondar.za
Cc:        hackers@FreeBSD.org
Subject:   Re: Creating a /dev/random
Message-ID:  <199510170123.LAA17511@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
I wrote:
>>> To avoid this, use the existing buffer `zbuf', which is freed correctly.
>>> There is no need for another variable - local variables are per process.
>                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> Perhaps `zbuf' should be renamed `buf'.

>>I don't understand something here - what happens if the one process is
>>reading both /dev/zero and /dev/random? will the two not then try to
>>share buf/zbuf and screw up?

>See above

Oops, I misread `one process'.  Well, one process can't be in the kernel
twice.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510170123.LAA17511>