This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: request: add hive unload functionality
- From: Larry Hall <cygwin-lh at cygwin dot com>
- To: micah at mail dot cs dot swt dot edu
- Cc: cygwin at cygwin dot com
- Date: Sun, 29 Jun 2003 12:58:03 -0400
- Subject: Re: request: add hive unload functionality
- References: <200306290548.h5T5m4ho005379@mail.cs.swt.edu>
- Reply-to: cygwin at cygwin dot com
micah@mail.cs.swt.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/