Show
Ignore:
Timestamp:
08/12/11 02:42:52 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1313116972 -0400
git-parent:

[6b499c56d49740dddfd460fe77465eba5393209f]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1313116972 -0400
Message:

(at least) on Solaris this fstat() can EINTR.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/jlog/jlog_io.c

    re153d26 rb394de2  
    236236{ 
    237237  struct stat sb; 
    238   if (fstat(f->fd, &sb) != 0) 
    239     return -1; 
     238  int rv; 
     239  while ((rv = fstat(f->fd, &sb) != 0) == -1 && errno == EINTR) ; 
     240  if (rv != 0) return -1; 
    240241  return sb.st_size; 
    241242}