diff options
Diffstat (limited to 'src/basic/barrier.c')
-rw-r--r-- | src/basic/barrier.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/basic/barrier.c b/src/basic/barrier.c index 436ba95989..2da633b311 100644 --- a/src/basic/barrier.c +++ b/src/basic/barrier.c @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - /*** This file is part of systemd. @@ -30,8 +28,8 @@ #include <unistd.h> #include "barrier.h" +#include "fd-util.h" #include "macro.h" -#include "util.h" /** * Barriers @@ -197,6 +195,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)); |