[core] Retry open() in stat_cache in case of EINTR

personal/stbuehler/wip
Thomas Porzelt 13 years ago
parent d1095e5943
commit e6c50c644b
  1. 5
      src/main/stat_cache.c

@ -326,7 +326,10 @@ liHandlerResult li_stat_cache_get(liVRequest *vr, GString *path, struct stat *st
if (fd) {
/* open + fstat */
if (-1 == (*fd = open(path->str, O_RDONLY))) {
while (-1 == (*fd = open(path->str, O_RDONLY))) {
if (errno == EINTR)
continue;
*err = errno;
return LI_HANDLER_ERROR;
}

Loading…
Cancel
Save