mirror of
https://github.com/wassname/ray.git
synced 2026-09-10 12:38:43 +08:00
Return errno from handle_sigpipe. (#1051)
This commit is contained in:
committed by
Philipp Moritz
parent
379b0604b4
commit
9f1e385335
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user