From e65f59609eca74d3c1af67f26ca85140175b1a37 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 15 Jan 2024 16:22:29 -0800 Subject: [PATCH] try this --- messaging/msgq.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/messaging/msgq.cc b/messaging/msgq.cc index f7fa09215..dc87cb808 100644 --- a/messaging/msgq.cc +++ b/messaging/msgq.cc @@ -108,7 +108,9 @@ int msgq_new_queue(msgq_queue_t * q, const char * path, size_t size, bool preall } if (preallocate && (std::getenv("MSGQ_PREALLOCATE") != nullptr)) { - rc = fallocate(fd, 0, 0, size + sizeof(msgq_header_t)); + do { + rc = fallocate(fd, 0, 0, size + sizeof(msgq_header_t)); + } while (rc == EINTR); if (rc < 0){ close(fd); return -1;