# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |