Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern socket: remove now incorrect comment that so_error ...
details: https://anonhg.NetBSD.org/src/rev/69d6ad3a8d9d
branches: trunk
changeset: 831283:69d6ad3a8d9d
user: roy <roy%NetBSD.org@localhost>
date: Mon Mar 19 16:32:30 2018 +0000
description:
socket: remove now incorrect comment that so_error is only udp
As it can be affected by route(4) sockets which are raw.
diffstat:
sys/kern/uipc_socket.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r b11102d3354f -r 69d6ad3a8d9d sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c Mon Mar 19 16:31:24 2018 +0000
+++ b/sys/kern/uipc_socket.c Mon Mar 19 16:32:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket.c,v 1.260 2018/03/19 16:31:24 roy Exp $ */
+/* $NetBSD: uipc_socket.c,v 1.261 2018/03/19 16:32:30 roy Exp $ */
/*-
* Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.260 2018/03/19 16:31:24 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.261 2018/03/19 16:32:30 roy Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -2250,7 +2250,7 @@
kn->kn_flags |= EV_EOF;
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);
@@ -2289,7 +2289,7 @@
kn->kn_flags |= EV_EOF;
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))
Home |
Main Index |
Thread Index |
Old Index