diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2024-04-02 12:21:40 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2024-04-02 12:21:40 +0000 |
commit | df78d2316c4fff13f0e2f1612cfde1e0a9d8388a (patch) | |
tree | 6f6f1313b534ee9a2b38f5e425508933076925d9 /sys/kern | |
parent | 2efcd4dd46ad690d0b836c6c135eb1add2d2de52 (diff) |
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
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
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)) { |