Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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//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/ 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