ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/ambient.c
(Generate patch)

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.108 by greg, Tue May 14 17:39:10 2019 UTC vs.
Revision 2.109 by greg, Tue Mar 10 15:57:52 2020 UTC

# Line 975 | Line 975 | aflock(                        /* lock/unlock ambient file */
975  
976          if (typ == fls.l_type)          /* already called? */
977                  return;
978 +
979          fls.l_type = typ;
980 <        if (fcntl(fileno(ambfp), F_SETLKW, &fls) < 0)
981 <                error(SYSTEM, "cannot (un)lock ambient file");
980 >        do
981 >                if (fcntl(fileno(ambfp), F_SETLKW, &fls) != -1)
982 >                        return;
983 >        while (errno == EINTR);
984 >        
985 >        error(SYSTEM, "cannot (un)lock ambient file");
986   }
987  
988  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines