This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Newest cygwin snapshot has /proc/<pid>/cmdline
- From: "Sergey Okhapkin" <sos at prospect dot com dot ru>
- To: <cygwin-developers at cygwin dot com>
- Date: Mon, 4 Nov 2002 17:25:13 -0500
- Subject: Re: Newest cygwin snapshot has /proc/<pid>/cmdline
- References: <20021104011443.GA23442@redhat.com>
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