Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msg/simple/Pipe:the returned value for do_recv unequal to zero #10272

Merged
merged 1 commit into from Mar 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/msg/simple/Pipe.cc
Expand Up @@ -2636,7 +2636,7 @@ ssize_t Pipe::buffered_recv(char *buf, size_t len, int flags)


ssize_t got = do_recv(recv_buf, recv_max_prefetch, flags);
if (got <= 0) {
if (got < 0) {
if (total_recv > 0)
return total_recv;

Expand Down