Merge pull request #2391 from keszybz/coverity

Coverity inspired fixes
This commit is contained in:
Daniel Mack
2016-01-21 11:50:08 +01:00
9 changed files with 29 additions and 18 deletions
+1
View File
@@ -197,6 +197,7 @@ static bool barrier_write(Barrier *b, uint64_t buf) {
if (barrier_i_aborted(b))
return false;
assert(b->me >= 0);
do {
len = write(b->me, &buf, sizeof(buf));
} while (len < 0 && IN_SET(errno, EAGAIN, EINTR));