Skip to content

Commit

Permalink
msg/simple/Pipe:the returned value for do_recv unequal to zero
Browse files Browse the repository at this point in the history
Signed-off-by: zhang.zezhu <zhang.zezhu@zte.com.cn>
  • Loading branch information
yonghengdexin735 committed Nov 22, 2016
1 parent f4ecdc5 commit 2b22f04
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 2b22f04

Please sign in to comment.