Source-Changes-HG archive

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

[src/netbsd-7-1]: src/sys/dev/sysmon Apply patch (requested by pgoyette in ti...



details:   https://anonhg.NetBSD.org/src/rev/6f1221a8e55f
branches:  netbsd-7-1
changeset: 800810:6f1221a8e55f
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Oct 23 18:57:09 2017 +0000

description:
Apply patch (requested by pgoyette in ticket #1511):
Detach the rndsrc before re-attaching it.

diffstat:

 sys/dev/sysmon/sysmon_envsys.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 552c341d28ae -r 6f1221a8e55f sys/dev/sysmon/sysmon_envsys.c
--- a/sys/dev/sysmon/sysmon_envsys.c    Mon Oct 23 18:50:38 2017 +0000
+++ b/sys/dev/sysmon/sysmon_envsys.c    Mon Oct 23 18:57:09 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysmon_envsys.c,v 1.127.2.1 2015/04/06 18:45:30 snj Exp $      */
+/*     $NetBSD: sysmon_envsys.c,v 1.127.2.1.6.1 2017/10/23 18:57:09 snj Exp $  */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.127.2.1 2015/04/06 18:45:30 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.127.2.1.6.1 2017/10/23 18:57:09 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1207,6 +1207,12 @@
                        }
 
                        /*
+                        * Detach from entropy collection
+                        */
+                       if (edata->flags & ENVSYS_FHAS_ENTROPY)
+                               rnd_detach_sources(&edata->rnd_src);
+
+                       /*
                         * Finally, remove any old limits event, then
                         * install a new event (which will update the
                         * dictionary)



Home | Main Index | Thread Index | Old Index