pitrou commented on a change in pull request #9633:
URL: https://github.com/apache/arrow/pull/9633#discussion_r587752941
##########
File path: cpp/src/arrow/flight/server.cc
##########
@@ -899,6 +921,13 @@ Status FlightServerBase::Serve() {
ARROW_ASSIGN_OR_RAISE(old_handler, SetSignalHandler(signum, new_handler));
impl_->old_signal_handlers_.push_back(std::move(old_handler));
}
+#ifndef _WIN32
+ if (sem_init(&impl_->waiting_sem_, /*pshared=*/0, /*value=*/0) != 0) {
Review comment:
Unfortunately I don't think macOS supports anonymous semaphores.
An alternative would be to use a non-blocking anonymous pipe. `write` is
async-signal-safe.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]