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: Wed, 14 Jul 2004 08:39:40 -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: <40F511B2.3050701@x-ray.at> Message-ID: References: <40F3ED68 DOT 6030304 AT x-ray DOT at> <40F511B2 DOT 3050701 AT x-ray DOT 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 > > (): > > [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 . 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 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/