Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-3683 libcfs: improve validity test for valid file descriptors
[fs/lustre-release.git]
/
lustre
/
utils
/
liblustreapi.c
diff --git
a/lustre/utils/liblustreapi.c
b/lustre/utils/liblustreapi.c
index
05e9929
..
a02f344
100644
(file)
--- a/
lustre/utils/liblustreapi.c
+++ b/
lustre/utils/liblustreapi.c
@@
-3889,7
+3889,7
@@
int llapi_changelog_start(void **priv, int flags, const char *device,
startrec, flags);
/* Only the kernel reference keeps the write side open */
close(cp->kuc.lk_wfd);
- cp->kuc.lk_wfd =
0
;
+ cp->kuc.lk_wfd =
LK_NOFD
;
if (rc < 0) {
/* frees and clears priv */
llapi_changelog_fini(priv);