(internal_setent): If opening of file failed with EGAIN return
authordrepper <drepper>
Sun, 10 Aug 1997 17:22:03 +0000 (17:22 +0000)
committerdrepper <drepper>
Sun, 10 Aug 1997 17:22:03 +0000 (17:22 +0000)
NSS_STATUS_TRYAGAIN.

nss/nss_files/files-XXX.c

index e80c06d..eb0f6fe 100644 (file)
@@ -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'.  */