aboutsummaryrefslogtreecommitdiff
path: root/pflocal
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-07-08 02:18:08 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-07-08 02:18:08 +0200
commit83470acc42312d68de9ac62fbc23f03f21c811b7 (patch)
tree611a2970f9f02258458cccdb5180d3218044a34b /pflocal
parent76369501dab992fa4d5451c36b3cbd74896b97a1 (diff)
downloadhurd-83470acc42312d68de9ac62fbc23f03f21c811b7.tar.gz
hurd-83470acc42312d68de9ac62fbc23f03f21c811b7.tar.bz2
hurd-83470acc42312d68de9ac62fbc23f03f21c811b7.zip
pflocal: make S_socket_recv return 0 instead of EPIPE
Callers are not expecting to get EPIPE, and rather a real EOF, like is done in S_io_read.
Diffstat (limited to 'pflocal')
-rw-r--r--pflocal/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pflocal/socket.c b/pflocal/socket.c
index ef54b65b..d60bece3 100644
--- a/pflocal/socket.c
+++ b/pflocal/socket.c
@@ -404,6 +404,7 @@ S_socket_recv (struct sock_user *user,
if (err == EPIPE)
/* EOF */
{
+ err = 0;
*data_len = 0;
if (num_ports)
*num_ports = 0;