delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/11/04/17:27:24

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
Message-ID: <000c01c28451$0ca73fa0$0201a8c0@sos>
From: "Sergey Okhapkin" <sos AT prospect DOT com DOT ru>
To: <cygwin-developers AT cygwin DOT com>
References: <20021104011443 DOT GA23442 AT redhat DOT com>
Subject: Re: Newest cygwin snapshot has /proc/<pid>/cmdline
Date: Mon, 4 Nov 2002 17:25:13 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Virus-Scanned: by amavisd-milter (http://amavis.org/)

Try to start "nice make" in one console and "top" in another one. Everything
freezes and "top" consumes all the CPU time:-( I think the problem is in the
following loop in _pinfo::commune_send():


  while ((isalive = alive ()))
    if (myself->hello_pid <= 0)
      break;
    else
      Sleep (0);

Changing Sleep(0) to Sleep(10) helps a little bit, but that's not a
solution...

Sergey Okhapkin
Somerset, NJ
----- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>
To: <cygwin-developers AT cygwin DOT com>
Sent: Sunday, November 03, 2002 8:14 PM
Subject: Newest cygwin snapshot has /proc/<pid>/cmdline


> The newest version of cygwin implements the promised
> /proc/<pid>/cmdline file.  I hope it is similar to UNIX.
>
> I was surprised to see that procps used this automatically once it
> was implemented.  This was a nice test that I got things at least
> half-way right.
>
> FYI,
> cgf


- Raw text -


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