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=uKYtUEGbe0reUy8G +FruG3tS4EzGcnLo3Tsmufwy0BrG/rEARFJfxlMS4sKgIOfiQmRqbYQ6Ngykl3LV 7X8/OOrbduNg5eYWXZ1nemPAfuccPOhyIeTeJkyX/0Dkogwv1I/fJ14Gwq39bUh0 j4y38tSazBVy2vF6blApnwF2Svo= 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=0RxUcWH2u6gQ8C79kOAKm8 2aD5s=; b=ZGPnJKlMmQfr9l8Qt+we2pnjUhPYNPejCK/U4qXVwx9TFjWloJd3sh t7fcYimwgefpvbIWKqj7l8p1+pk3lFW4mp3qElAAw1vx8jQ6KD75tPnzdZHbTjy7 2iOgO5gANoATINP8YnaQfebQnjRKp3fOVwYw9KPk/AR2KJY6Z2SrY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Virus-Found: No X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, Repin, repin, H*M:yandex X-HELO: forward106j.mail.yandex.net Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Thu, 25 Jan 2018 20:28:34 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <15810111607.20180125202834@yandex.ru> To: Sabuj Pattanayek , cygwin AT cygwin DOT com Subject: Re: ps does not see all processes if used through a junctioned top level cygwin directory in cmd In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Sabuj Pattanayek! > Hi everyone, > I'm experiencing a strange issue where ps does not find all the processes > if it's run from a top level junction to the main cygwin directory in cmd : > On an older windows install I had cygwin under c:\cygwin64 , this time I > used chocolatey to install it and it put it under c:\tools\cygwin. To keep > things consistent so as not to break users I decided to make a junction : > Directory of C:\ > 01/04/2018 03:01 PM cygwin64 [c:\tools\cygwin] > running ps from cygwin works fine : > $ ps -p 6376 > PID PPID PGID WINPID TTY UID STIME COMMAND > 6376 1 6376 5464 pty2 197608 23:52:31 > /cygdrive/c/Windows/system32/cmd > however running it from the junctioned top level directory does not work : > C:\>c:\cygwin64\bin\ps -p 6376 > c:\cygwin64\bin\ps -p 6376 > PID PPID PGID WINPID TTY UID STIME COMMAND > but when launched via the actual path it works properly : > C:\>c:\tools\cygwin\bin\ps -p 6376 > c:\tools\cygwin\bin\ps -p 6376 > PID PPID PGID WINPID TTY UID STIME COMMAND > 6376 1 6376 5464 pty2 197608 23:52:31 > /cygdrive/c/Windows/system32/cmd > any ideas what's causing this? I have no idea how did you do it, but I'm unable to see Windows processes like that without -W. []$ ps -p 7636 PID PPID PGID WINPID TTY UID STIME COMMAND []$ ps -Wp 7636 PID PPID PGID WINPID TTY UID STIME COMMAND 7636 0 0 7636 ? 0 15:47:38 C:\Program Files\Opera\opera.exe -- With best regards, Andrey Repin Thursday, January 25, 2018 20:25:57 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