Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Fri, 12 Oct 2001 08:43:29 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Another process creation bug Message-ID: <20011012084329.A4172@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20011012104710 DOT 8643 DOT qmail AT web11504 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011012104710.8643.qmail@web11504.mail.yahoo.com> User-Agent: Mutt/1.3.21i On Fri, Oct 12, 2001 at 03:47:10AM -0700, Robert Legros wrote: >Hi, > >I think I found another process creation bug. When a >process is created, it may happen that it is created >twice in the process list. > >For example, type the following command : > ps -W | less > >You may sometimes (not always) get such a result : > PID PPID PGID WINPID TTY UID >STIME COMMAND > 1372 1 1372 1372 con 1001 >12:23:38 /usr/bin/bash > 1232 1372 1064 1232 con 1001 >12:24:05 /usr/bin/less > 1064 1372 1064 972 con 1001 >12:24:05 /usr/bin/ps > 1340 0 0 1340 ? 0 >12:24:05 *** unknown *** > >The Windows Task Manager gives the following >information : > - bash.exe is Windows process 1372 > - less.exe is Windows process 1340 > - ps.exe has already died "That's the way it works" (tm) This is an AFAIK unavoidable race condition. cgf -- 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/