summaryrefslogtreecommitdiff
path: root/src/basic/barrier.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/barrier.c')
-rw-r--r--src/basic/barrier.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/barrier.c b/src/basic/barrier.c
index 9a78a80eb2..26ae123341 100644
--- a/src/basic/barrier.c
+++ b/src/basic/barrier.c
@@ -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));