From: drepper Date: Sun, 10 Aug 1997 17:22:03 +0000 (+0000) Subject: (internal_setent): If opening of file failed with EGAIN return X-Git-Tag: libc-ud-970810~90 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=712d120939c84ca0890e4916374d1c1dc9825b34 (internal_setent): If opening of file failed with EGAIN return NSS_STATUS_TRYAGAIN. --- diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c index e80c06d269..eb0f6fec8f 100644 --- 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) - 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'. */