Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys soreadable() should consider so_rerror



details:   https://anonhg.NetBSD.org/src/rev/cdc6629c92c0
branches:  trunk
changeset: 944624:cdc6629c92c0
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Oct 05 08:38:17 2020 +0000

description:
soreadable() should consider so_rerror

diffstat:

 sys/sys/socketvar.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2089e5e76a1a -r cdc6629c92c0 sys/sys/socketvar.h
--- a/sys/sys/socketvar.h       Mon Oct 05 06:45:40 2020 +0000
+++ b/sys/sys/socketvar.h       Mon Oct 05 08:38:17 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socketvar.h,v 1.160 2019/03/07 12:29:14 maxv Exp $     */
+/*     $NetBSD: socketvar.h,v 1.161 2020/10/05 08:38:17 roy Exp $      */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -442,7 +442,7 @@
 
        return so->so_rcv.sb_cc >= so->so_rcv.sb_lowat ||
            (so->so_state & SS_CANTRCVMORE) != 0 ||
-           so->so_qlen != 0 || so->so_error != 0;
+           so->so_qlen != 0 || so->so_error != 0 || so->so_rerror != 0;
 }
 
 /* can we write something to so? */



Home | Main Index | Thread Index | Old Index