Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 13 Jul 2004 10:30:22 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Reini Urban cc: cygwin AT cygwin DOT com Subject: Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs In-Reply-To: <40F3ED68.6030304@x-ray.at> Message-ID: References: <40F3ED68 DOT 6030304 AT x-ray DOT at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Tue, 13 Jul 2004, Reini Urban wrote: > cat /proc/registry/HKEY_PERFOMANCE_DATA/@ > hangs forever. According to MSDN (): ...although you use the registry to collect performance data, the data is not stored in the registry database. Instead, calling the registry functions with the HKEY_PERFORMANCE_DATA key causes the system to collect the data from the appropriate system object managers. To obtain performance data from the local system, use the RegQueryValueEx function, with the HKEY_PERFORMANCE_DATA key. The first call opens the key; you do not need to explicitly open the key first. However, be sure to use the RegCloseKey function to close the handle to the key when you are finished obtaining performance data. This tells me that reading from HKEY_PERFORMANCE_DATA never returns EOF, so that you have to terminate it explicitly from the outside. So your behavior sounds absolutely normal. > Win2K (no win98 OS) > Shouldn't HKEY_PERFOMANCE_DATA be disabled on NT systems, or does it work? If the key is present, it'll be in /proc/registry. FWIW, the MSDN web page above doesn't mention any restrictions on the systems that this key is present on. > This cat has pid 560: > $ cat /proc/560/status > [snip] > > kill 560 > doesn't help, /bin/kill.exe neither. > pskill works ok. "/bin/kill -f 560". > $ uname -a > CYGWIN_NT-5.0 reini 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown > unknown Cygwin HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/