delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/12/16:50:17

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=cw+mhDPUDic1Uw2e
dWoeswBfvI+VazT+rddqY4JKKLy6groSpmJFI3/dWHlk4jdtQGhC4+YgrENTBP14
msjrqFMHD4Q6wD4LT/H7RJNHiOK6cd0Zr2rQ0UXkCfxMGxijw6oiNupKWNhNjTAO
YHDha7UdWhOm9TDrwxt931HxarQ=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=JXcditprNGKzcUjZoA+ZT+
QVUSI=; b=EYC+SYg6Z1l3byXheYkok2mDHkTD9k5ZhEsMibMLtH6nqUGPGQL88i
TAx7rnTUYbdPi1eUnEARWup8221Rry1qY+lF18DCkK00cs5fF1ujnwz+k+qw0ugC
lzyO8o/bhJhLuYHrvH1P4aHLODprekYIiAz26u5em2ERp6FRS/lDs=
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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=UD:ru, terrible, H*M:yandex, H*RU:sk:forward
X-HELO: forward104o.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1552423801; bh=EDIKp4Ypo4odzuTs1wMGHPQnnN/GWWVrjiFYP3moPXM=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=keDFRL3c9l4t40uvy8Wigh5gsPMuqiZbLlYGd0LZzkbmofyEjHFak3In/QYWkHecY Rly2Bu7bqhr0lXZbE8BNbAwkihBrP4p3cU0NS79Bwt5NCYiQ/6/Ck7l1SH8TFNHGIF s5sg/x0/uCooRg06XHlrE1ARd3p04f8+jv2GRSFE=
Authentication-Results: mxback21o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Tue, 12 Mar 2019 23:35:54 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <512910309.20190312233554@yandex.ru>
To: Corinna Vinschen <cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com
Subject: Re: Privilege(s) needed to run top command
In-Reply-To: <20190312202802.GP3785@calimero.vinschen.de>
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> <20190312202802 DOT GP3785 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x2CKoGee003539

Greetings, Corinna Vinschen!

> 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 :}

Err, but why? PSAPI was available sinceā€¦ a long time since.
And it is public API except for isolated processes.

> 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.


-- 
With best regards,
Andrey Repin
Tuesday, March 12, 2019 23:34:43

Sorry for my terrible english...
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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