Source-Changes-HG archive

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

[src/trunk]: src/external/mpl/bind/dist/lib/isc/unix Locking protocol changed...



details:   https://anonhg.NetBSD.org/src/rev/09a28c7f337f
branches:  trunk
changeset: 975486:09a28c7f337f
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 29 16:07:11 2020 +0000

description:
Locking protocol changed again, unlock after send/recv

diffstat:

 external/mpl/bind/dist/lib/isc/unix/socket.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r b0217abe3502 -r 09a28c7f337f external/mpl/bind/dist/lib/isc/unix/socket.c
--- a/external/mpl/bind/dist/lib/isc/unix/socket.c      Sat Aug 29 16:00:36 2020 +0000
+++ b/external/mpl/bind/dist/lib/isc/unix/socket.c      Sat Aug 29 16:07:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socket.c,v 1.17 2020/08/03 17:23:43 christos Exp $     */
+/*     $NetBSD: socket.c,v 1.18 2020/08/29 16:07:11 christos Exp $     */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -3201,6 +3201,8 @@
        if (more_data)
                select_poke(sock->manager, sock->threadid, sock->fd,
                    SELECT_POKE_WRITE);
+
+       UNLOCK(&sock->lock);
 }
 
 static void
@@ -3227,6 +3229,8 @@
        if (more_data)
                select_poke(sock->manager, sock->threadid, sock->fd,
                    SELECT_POKE_READ);
+
+       UNLOCK(&sock->lock);
 }
 
 /*



Home | Main Index | Thread Index | Old Index