Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 14 Jul 2004 08:39:40 -0400 (EDT)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Reini Urban <rurban@x-ray.at>
cc: cygwin@cygwin.com
Subject: Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
In-Reply-To: <40F511B2.3050701@x-ray.at>
Message-ID: <Pine.GSO.4.58.0407140835380.29800@slinky.cs.nyu.edu>
References: <40F3ED68.6030304@x-ray.at> <Pine.GSO.4.58.0407131021000.29800@slinky.cs.nyu.edu> <40F511B2.3050701@x-ray.at>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.39

On Wed, 14 Jul 2004, Reini Urban wrote:

> Igor Pechtchanski schrieb:
>
> > On Tue, 13 Jul 2004, Reini Urban wrote:
> >
> >>cat /proc/registry/HKEY_PERFOMANCE_DATA/@
> >>hangs forever.
> >
> > According to MSDN
> > (<http://msdn.microsoft.com/library/en-us/perfmon/base/the_hkey_performance_data_key.asp>):
> > [snip]
> >
> >>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".

Whoops.  That's two errors in this thread.  This should have been the
Windows PID of cat.  *blush*.

> $ cat /proc/registry/HKEY_PERFOMANCE_DATA/@
>
> /bin/kill -f doesn't work.  (W2K SP4, all updates)
>
> $ ps
>        PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
>       1432       1    1432       1432    0 1000 11:47:24 /usr/bin/bash
>        636    1432     636       1724    0 1000 11:47:37 /usr/bin/cat
>       1732       1    1732       1732    1 1000 11:49:10 /usr/bin/bash
>       1772    1732    1772       1784    1 1000 11:49:14 /usr/bin/ps
>
> $ /bin/kill -f 636
> couldn't open pid 636

You needed to say "/bin/kill -f 1724".  Mea culpa.

> If the registry handler should follow the stream semantics it should
> react on signals at least.
> But neither Ctrl-D nor Ctrl-C work.

See <http://cygwin.com/ml/cygwin/2004-07/msg00496.html>.  The
fhandler_registry::fill_filebuf function just gets into a tight infinite
loop with no chance for signal handling.

> next attempt: (still no killall script? then it would be simply killall cat)
>
> $ /bin/kill -9 -f 1748
> couldn't open pid 1748
>
> but here cat and the parent bash windows are killed.

Huh?  What's 1748?  Did you mean 1432?  Also, you either supply -9 or -f
(-9 sends Cygwin SIGKILL, -f uses TerminateProcess).

Sorry for the confusion.  Hope we'll get this sorted out eventually.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/

