From: mvs Date: Tue, 2 Apr 2024 12:21:39 +0000 (+0000) Subject: Remove wrong "temporary udp error" comment in filt_so{read,write}(). Not X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=776c8ff646993d81913976284db6c9354a485290;p=openbsd Remove wrong "temporary udp error" comment in filt_so{read,write}(). Not only udp(4) sockets set and check `so_error'. No functional changes. ok bluhm --- diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 35f75a014d9..97f53cff0c9 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket.c,v 1.325 2024/03/31 14:01:28 mvs Exp $ */ +/* $OpenBSD: uipc_socket.c,v 1.326 2024/04/02 12:21:39 mvs Exp $ */ /* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */ /* @@ -2290,7 +2290,7 @@ filt_soread(struct knote *kn, long hint) } kn->kn_fflags = so->so_error; rv = 1; - } else if (so->so_error) { /* temporary udp error */ + } else if (so->so_error) { rv = 1; } else if (kn->kn_sfflags & NOTE_LOWAT) { rv = (kn->kn_data >= kn->kn_sdata); @@ -2327,7 +2327,7 @@ filt_sowrite(struct knote *kn, long hint) } kn->kn_fflags = so->so_error; rv = 1; - } else if (so->so_error) { /* temporary udp error */ + } else if (so->so_error) { rv = 1; } else if (((so->so_state & SS_ISCONNECTED) == 0) && (so->so_proto->pr_flags & PR_CONNREQUIRED)) {