Permalink
Browse files

fix b394de2213c1f29eca92242b6fa60df439236740 from reconnoiter

  • Loading branch information...
1 parent 68bc72a commit 30572149f92bf8103711b7a4319fdaf8040b928f @postwait postwait committed Aug 31, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 jlog_io.c
View
@@ -235,8 +235,9 @@ int jlog_file_map_read(jlog_file *f, void **base, size_t *len)
off_t jlog_file_size(jlog_file *f)
{
struct stat sb;
- if (fstat(f->fd, &sb) != 0)
- return -1;
+ int rv;
+ while ((rv = fstat(f->fd, &sb) != 0) == -1 && errno == EINTR) ;
+ if (rv != 0) return -1;
return sb.st_size;
}

0 comments on commit 3057214

Please sign in to comment.