summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/random.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sal/osl/unx/random.cxx b/sal/osl/unx/random.cxx
index 2830daaa4ec6..04333a2f3b2b 100644
--- a/sal/osl/unx/random.cxx
+++ b/sal/osl/unx/random.cxx
@@ -27,6 +27,7 @@ int osl_get_system_random_data(char* buffer, size_t desired_len)
{
if (errno != EINTR)
{
+ close(fd);
return false;
}
}