diff --git a/src/plasma/plasma_manager.cc b/src/plasma/plasma_manager.cc index 75b374ccf..d771a1fc8 100644 --- a/src/plasma/plasma_manager.cc +++ b/src/plasma/plasma_manager.cc @@ -47,7 +47,9 @@ int handle_sigpipe(Status s, int fd) { return 0; } - switch (errno) { + int err = errno; + + switch (err) { case EPIPE: { ARROW_LOG(WARNING) << "Received EPIPE when sending a message to client on fd " << fd @@ -74,6 +76,8 @@ int handle_sigpipe(Status s, int fd) { CHECK(0); LOG_FATAL("Failed to write message to client on fd %d", fd); } + + return err; } /**