delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=Gs5mNPv9SRHMQhgeoh7E0gBaLBt2eEo7WP9qiv4iBWt13NCOTPUDV | |
pCXBueQaowy6ltYhHjwtnYUgTsp5907BW4snoleF0RQ4Oh5NFycyuEQhv+MxuDvF | |
vUw8xjlDKpwfQ2b81e3gxU0aBidPTrPGMzmzY0VD0z+COXdxrUrasI= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=YeaeHJKwjFR2Yn7W5oRbzbkyeGs=; b=dMEM3v0iGyesZPx9FlbqOBDJ8otz | |
HfTvMdJUjTsJlTVtxMsJCk0Xf9TPyUYtxrH8P2JlnTDAkO+dVmIiCzpH4mAgSkoZ | |
cK9X+cXrSiKGh+uTaHefby/z+E+9pSpmI12SiaBkGTZwxrHv+f/1je3pEcWEb9f4 | |
XRp4Zy891NgzWbc= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-102.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Today, long-standing, longstanding, Sir |
X-HELO: | mout.kundenserver.de |
Date: | Tue, 12 Mar 2019 21:28:02 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Privilege(s) needed to run top command |
Message-ID: | <20190312202802.GP3785@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <87r2bd4003 DOT fsf AT Rainer DOT invalid> <1552383712993-0 DOT post AT n5 DOT nabble DOT com> <20190312111411 DOT GH3785 AT calimero DOT vinschen DOT de> <1552391701449-0 DOT post AT n5 DOT nabble DOT com> <167740c9afacd1bd4f914cae2e19eb01 AT smtp-cloud9 DOT xs4all DOT net> <1552405511657-0 DOT post AT n5 DOT nabble DOT com> <20190312164725 DOT GK3785 AT calimero DOT vinschen DOT de> <1552410026803-0 DOT post AT n5 DOT nabble DOT com> <20190312171339 DOT GM3785 AT calimero DOT vinschen DOT de> <20190312173901 DOT GN3785 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20190312173901.GN3785@calimero.vinschen.de> |
User-Agent: | Mutt/1.11.3 (2019-02-01) |
--NV1faPSjApYYKCht Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 12 18:39, Corinna Vinschen wrote: > On Mar 12 18:13, Corinna Vinschen wrote: > > On Mar 12 10:00, jwang wrote: > > > Sir, > >=20 > > Nope. > >=20 > > > I download, this morning: > > > 3132 -rw-r--r-- 1 james None 3207004 Mar 12 10:50 cygwin-20190312.ta= r.xz > > >=20 > > > tar -xvf cygwin-20190312.tar.xz > >=20 > > Where to? You have to install cygwin1.dll in place of the other > > cygwin1.dll while having stopped all Cygwin processes. Just unpacking > > with tar won't do anything useful. > >=20 > > > then I did:=20 > > >=20 > > > usr/bin/ps -W|grep httpd > >=20 > > This is really not helpful as far as bug reports go. Drop the > > grep, drop the -W. Just call `ps -e' or `procps -e' or `top' > > and see what's visible. Do you see all CYgwin processes? If so, fine. > > If not, please report details. Just don't expect top's load average > > values to make any sense if you're running under a non-privileged > > user account. They will be always 0. >=20 > Btw., `ps -W' only shows non-Cygwin processes visible inside the > current user session. This session isolation has been introduced with > Windows 2003 and since Vista even the console interactive session is > running in its own session distinct from session 0. >=20 > Task Manager doesn't suffer this problem, but it's not clear to me why. > Perhaps it connects to a broker service which gives task manager access > to all processes. This was complete nonsense. Actually, the problem was entirely in Cygwin's ps.exe, and it's a long-standing problem at that. While the Cygwin DLL collected the complete process list for ps, ps then didn't print any process it failed to call OpenProcess on. These are a *lot* of processes and the result looked a lot like the list of processes in or connected to the current session. The reason for this behaviour was that the image path of a process could only be fetched when opening the process. Today I found new functionality since Vista which allows to fetch the image path without having to open the process, so `ps -W' will print all processes again, just as in the good old XP times :} Please try the latest snapshot from https://cygwin.com/snapshots/ Make sure to use ps.exe from that snapshot since this time the ps executable is affected, not the Cygwin DLL itself. Corinna --=20 Corinna Vinschen Cygwin Maintainer --NV1faPSjApYYKCht Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyIFlIACgkQ9TYGna5E T6C4GBAAlMgPrDk5VtSqtBQU8fnDJEaTYzYZC2DTG0PnQT1MvB1aNpThhqH8Rxdj Wk7Xzqi34ZNqjNoXkbpfBO7W8/BB02Yuhk3L64FQS1V3yt5jQpSjQgMJUjDyKJpT ahcRarmxx7MEgDz9w4r6fW9Fo0eOKK+nJgMfa3PwbGBNAlvmC78yR7X9v2zC9z2L 7QG8aSR8+ZtwReBwd8IAMYKJ1l4lHxqk1MFbcMRghldgMx6GGZgtFaymMYdthssj FSIGjB+yhOAvJa0PYqWsRRX415ywqoJdi1woWqcS4ZjTeV+9ylMjqML6mIpinRPY omU5ZLbgN3kKm039Xvs8N94Z6MbaJPXNaBSb7L/w0GOOxn/LyOkxzxjU2+yOUs0k d0Urhsd6O/CjN86RNyn+RJew8WZ+7rytkfbVh3qzirvUuqINnz4u4r2YfaONggSz 4W5nF9LshTdNulGcuF6KkoTAQjedt7nWNdXY6SYOO+mnW9mu3kn6wSIYYqVDs/DI Uv32QhjYg4s1FCPGaaVXynKksw5rPBtGWfvGNewJ6YKbWRWaT9SHQBudNNVE8nOp ibk5mtJ6fBOJusvL3l3xUcTpV81bA2aePxiOVn1SuwvTSvjcj2c/hFLRDCSVcwcI pi0XUPcjjc7NyMASvC0fbZMNT5sbmILwF+FzZiifrYwWFddkU1I= =0MXN -----END PGP SIGNATURE----- --NV1faPSjApYYKCht--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |