delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Info: | This message was accepted for relay by |
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication | |
X-Trace: | UmFuZG9tSVZjt57uuUrXcOmnwtVnOAfExAQ5JKowxMQWiqN+I4tLhoJvihnosB2x |
Message-ID: | <3EFF1A9B.6010305@cygwin.com> |
Date: | Sun, 29 Jun 2003 12:58:03 -0400 |
From: | Larry Hall <cygwin-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
To: | micah AT mail DOT cs DOT swt DOT edu |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: request: add hive unload functionality |
References: | <200306290548 DOT h5T5m4ho005379 AT mail DOT cs DOT swt DOT edu> |
In-Reply-To: | <200306290548.h5T5m4ho005379@mail.cs.swt.edu> |
micah AT mail DOT cs DOT swt DOT edu wrote: > after browsing the source, I gathered that whenever a new process is spawned(spawn.cc) the user's hive is loaded and linked to HKEY_CURRENT_USER. but, the user's hive is never unloaded i.e. whenever the last process running as that user terminates. > > so I humbly suggest adding an unload function to the registry like: > > void unload_registry_hive (PSID psid){ ... } > > then wait until the last process running as that user exits and then unload the hive. > > > the reason for the request is I have a couple of programs that monitor user logon/logoffs. they work by monitoring the HKEY_USERS hive and with cygwin-sshd, the hives never unload even after I kill sshd... Hm, a worthwhile idea. FWIW, if you'd like to see this change happen in a timely manner, I'd suggest submitting a patch for this. If you're interested, see <http://cygwin.com/contrib.html>. Thanks, -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |