aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/mlock.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-07-02 23:46:35 +0000
committerlloyd <[email protected]>2009-07-02 23:46:35 +0000
commit88cfd2b1f814272cde16930e687187ec9107427f (patch)
treeef5c41213bef9f1ca8677272b76a7281783f6718 /src/utils/mlock.cpp
parent06adeee388ba66957d8cdad4dc0567398cc930c4 (diff)
Fix a subtle bug in the /dev/*random reader. The maximum ms wait time was
set to 1000 ms (scaling based on amount of data requested). At 1000 ms exactly, we would form a timeval of 0 seconds and 1000000 usecs (ie, 1 second). Linux was fine with this, but FreeBSD 7.0's select was returning EINVAL. Fix things to properly create the timeval so that everyone is happy.
Diffstat (limited to 'src/utils/mlock.cpp')
0 files changed, 0 insertions, 0 deletions