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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/barrier.c b/src/basic/barrier.c
index 436ba95989..26ae123341 100644
--- a/src/basic/barrier.c
+++ b/src/basic/barrier.c
@@ -30,8 +30,8 @@
#include <unistd.h>
#include "barrier.h"
+#include "fd-util.h"
#include "macro.h"
-#include "util.h"
/**
* Barriers
@@ -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));