Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Fri, 12 Oct 2001 08:43:29 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: Another process creation bug
Message-ID: <20011012084329.A4172@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20011012104710.8643.qmail@web11504.mail.yahoo.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/

