delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/07/26/13:53:15

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
X-WM-Posted-At: avacado.atomice.net; Fri, 26 Jul 02 18:53:14 +0100
Message-ID: <003901c234cd$509446f0$0100a8c0@atomice.net>
From: "Chris January" <chris AT atomice DOT net>
To: <cygwin-developers AT cygwin DOT com>
References: <20020726015300 DOT GA11832 AT redhat DOT com>
Subject: Re: cgf's sandbox
Date: Fri, 26 Jul 2002 18:53:14 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> I promised Christopher January that I'd try to implement a cmdline
> method for pinfo and I've got something in my sandbox that seems to work
> ok.  It contacts the other process and says "give me your command line"
> so there is no use of shared memory.
Thanks for taking the time to do this.

>
> I implemented /proc/cmdline as a proof of concept and it seems to
> work well.
>
> I can extend this mechanism to allowing /proc/pid/fd/n, too.
That would be good. Someone wanted lsof to work on Cygwin - adding
/proc/<pid>/fd should help a lot.

>
> I have a few more things to tweak and then I can check this in.
>
> My sandbox also has the beginnings of a mount table generalization that
> should allow /proc and /dev to be mounted as special filesystems, too.
> That is in a much earlier stage of development, though.  I'm not entirely
> satisfied with it yet.
Perhaps this would be a good time for the implementation details for this
could be opened up for wider discussion in case anyone has any comments?

One question - for some of the items in /proc/<pid> I have native (NT only)
implementations as well (e.g. I have a native routine that gets the command
line of a program, another that lists open files). What are peoples views on
adding support for native processes to /proc? (These would also show up in
ps, etc.) I was thinking of using an environment variable to switch between
Cygwin processes only and all processes (like the -W switch of ps).

Chris


- Raw text -


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