Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d76f3a7
)
i=wangdi,b=19448:
author
isaac
<isaac>
Fri, 15 May 2009 01:57:20 +0000
(
01:57
+0000)
committer
isaac
<isaac>
Fri, 15 May 2009 01:57:20 +0000
(
01:57
+0000)
- fixed a file handle leak in liblustre_init_random.
lustre/liblustre/lutil.c
patch
|
blob
|
history
diff --git
a/lustre/liblustre/lutil.c
b/lustre/liblustre/lutil.c
index
fc9bc5d
..
ba0fd2f
100644
(file)
--- a/
lustre/liblustre/lutil.c
+++ b/
lustre/liblustre/lutil.c
@@
-129,6
+129,7
@@
void liblustre_init_random()
if (syscall(SYS_read, _rand_dev_fd,
&seed, sizeof(seed)) == sizeof(seed)) {
ll_srand(seed[0], seed[1]);
+ syscall(SYS_close, _rand_dev_fd);
return;
}
syscall(SYS_close, _rand_dev_fd);