projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d0200d
)
(internal_setent): If opening of file failed with EGAIN return
author
drepper
<drepper>
Sun, 10 Aug 1997 17:22:03 +0000
(17:22 +0000)
committer
drepper
<drepper>
Sun, 10 Aug 1997 17:22:03 +0000
(17:22 +0000)
NSS_STATUS_TRYAGAIN.
nss/nss_files/files-XXX.c
patch
|
blob
|
history
diff --git
a/nss/nss_files/files-XXX.c
b/nss/nss_files/files-XXX.c
index
e80c06d
..
eb0f6fe
100644
(file)
--- a/
nss/nss_files/files-XXX.c
+++ b/
nss/nss_files/files-XXX.c
@@
-72,7
+72,7
@@
internal_setent (int stayopen)
stream = fopen (DATAFILE, "r");
if (stream == NULL)
stream = fopen (DATAFILE, "r");
if (stream == NULL)
- status = NSS_STATUS_UNAVAIL;
+ status =
errno == EAGAIN ? NSS_STATUS_TRYAGAIN :
NSS_STATUS_UNAVAIL;
else
{
/* We have to make sure the file is `closed on exec'. */
else
{
/* We have to make sure the file is `closed on exec'. */