This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

request: add hive unload functionality


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...


thanks,
micah


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]