delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/07/13:11:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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-WM-Posted-At: avacado.atomice.net; Wed, 7 Aug 02 18:11:31 +0100
Message-ID: <00c601c23e35$79aa7c00$0100a8c0@atomice.net>
From: "Chris January" <chris AT atomice DOT net>
To: <cygwin AT cygwin DOT com>
References: <20020805223042 DOT 39e9de67 DOT jim DOT george AT blueyonder DOT co DOT uk><Pine DOT GSO DOT 4 DOT 44 DOT 0208051908090 DOT 694-100000 AT slinky DOT cs DOT nyu DOT edu><20020806095533 DOT O3921 AT cygbert DOT vinschen DOT de><20020806112623 DOT 2950e6f5 DOT jim DOT george AT blueyonder DOT co DOT uk><20020806142354 DOT GA19193 AT redhat DOT com> <20020806210752 DOT 24512cc5 DOT jim DOT george AT blueyonder DOT co DOT uk>
Subject: Re: Top reporting on cygwin processes only?
Date: Wed, 7 Aug 2002 18:11:31 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> > >should ps be modified to work as top does, of course /proc would need
> > >to be upgraded, or can top be modified to work as ps does, or should
> > >both continue on their own but be updated to recognise all processes
> > >running on a box?
> >
> > 'ps --help' will show you an option for displaying windows processes as
> > well as cygwin processes.
> >
> > cgf
> >
> I'm aware that ps -W shows both but what I was driving at in my own
befuddled way is, shouldn't both top and ps be capable of reporting on both,
i.e bring top in to line with ps?
>
> Based on what Corrina said this would mean a major change to one or other
of the utilities since top uses /proc but ps uses the cygwin api.  Hence
which, if any, should change?

Ideally ps would use /proc, rather than cygwin_internal. IMHO, a procps
derived version of ps should be included with Cygwin - but it should be
modified to support Windows processes. The best way to do this is to add
Windows processes to /proc, perhaps when an environment variable is set.
I already have nearly all the code lying around on my hard disk to do this -
it's just a case of recovering from the flu and waiting for my RSI to heal -
so maybe in a few months.... :-)

Chris



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019