This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newest cygwin snapshot has /proc/<pid>/cmdline


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@redhat.com>
To: <cygwin-developers@cygwin.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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]