lidavidm commented on code in PR #13315:
URL: https://github.com/apache/arrow/pull/13315#discussion_r891133502


##########
cpp/src/arrow/flight/server.cc:
##########
@@ -157,8 +157,11 @@ struct FlightServerBase::Impl {
   void DoHandleSignal(int signum) {
     got_signal_ = signum;
     int saved_errno = errno;
-    // Ignore errors - pipe is nonblocking
-    PIPE_WRITE(self_pipe_wfd_, "0", 1);
+    if (PIPE_WRITE(self_pipe_wfd_, "0", 1) < 0) {
+      // Can't do much here, though, pipe is nonblocking so hopefully this 
doesn't happen
+      ARROW_LOG(WARNING) << "FlightServerBase: failed to handle signal " << 
signum
+                         << " errno: " << errno;
+    }

Review Comment:
   Thanks! This was just to silence a warning that I was getting



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to