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 Message-ID: Date: Sat, 6 Aug 2005 08:46:34 -0700 From: Joshua Daniel Franklin To: cygwin AT cygwin DOT com Subject: Re: pid confusion and pstree In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j76FlCGl015956 On 8/4/05, Jason Pyeron wrote: > hmmm? why are there zeros on the PGID, and why when using -W does PID > change to WINPID? BUG? Actually, I don't know if this is a bug or a documentation shortcoming. From looking at the source, it looks like cygwin returns the same number for p->pid and p->dwProcessId when using CW_GETPINFO_FULL. Shouldn't p->pid still be the Cygwin pid if it exists? I tried looking at external.cc and it made my head hurt, but I *think* this would do it (sorry, no time to build right now): RCS file: /cvs/src/src/winsup/cygwin/external.cc,v retrieving revision 1.77 diff -r1.77 external.cc 77c77,79 < ep.pid = p->pid; --- > ep.pid = cygwin_pid (thispid); > if (!ep.pid) > ep.pid = p->pid; -- 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/