delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/01/25/12:02:50

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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=cHHR+/CwTryuH7iV/O7f2xBEF6C4D
VLq2/avD4h5JlENGPB/tgEWoJ5gz0LHVWdXqp6+n7GO6m0HvFZFAxPCnLyT55RmZ
+3qUKed+aRpRfqR2lrZoClpfEGoj/CDOof8LDH2jhRHjG4irUi21UoLSgCqAJ9tw
1GhjmdYe/o/Dso=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=wMlRTF8ECU6HDXNEjB4CIhVjczk=; b=g4v
hAeFqti7l/hFRk1/v6xrOaIReWJEuWZkaR2wafD25CMRopJT1+9qPVgsar1xanJE
Ed+QyGCweK0zkuTs/CeMkVIZ0xEn05ZO9EktEz6Jwu2gd5XLt/YGBHknWqnM5epT
ihz+4gSFVY0MaO1lETJCWt2YXHRRNSSy8TELu42U=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*c:alternative, pgid, PGID
X-HELO: mail-vk0-f41.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xUBfpxPwmuim+wA5GMl5Yk1SwBIXNNFDMx8GCJTSYs0=; b=oG8AztkeUAo8qUaPFWEUipGI6Pfm7pZm+bgAPKXcaQ98wmAkzpLiMWhOR0RJzuYMNo F0hu34AyLS6uSsCevri/r6xZryVfeEVaZATnd2wpY8+O5EkYTkzN3CNWPndFKOjsmGJA VY+FzrytFLDwDe19bRFcYhkTI6X836+XpE+C1C5pliutddasv8P8fCbYSTqDq7mSejFX oyhEMCLks0AQ4VuOPomhCIoGvxXJDTJImqfzcriSbuV9POgSlPOlSBSmlLufwmp6Bs0P BxukL8l7uGEhLZESR+OG3+6KJhYkUsqmOtg0OoXSeiMIXqjxCTSJqA4LcUD4pF3MYctI GuIw==
X-Gm-Message-State: AKwxyte8r66d9CGAJujrUha08d9EUHArWCE5TCmr0g4l8Vah2BSXLV2U 8kNpch69cIwyCIXqCaRbClnfumDXMXBucuYNO16LPA==
X-Google-Smtp-Source: AH8x2252B7+QUZUfQ2eirsGV+K7q2VVnNjvHkRT5Mnijw0F08Xwil2bcmCwfalxCsx3F7i5bZla5Gwm1PwgwxdCkocQ=
X-Received: by 10.31.9.148 with SMTP id 142mr8478844vkj.161.1516899755752; Thu, 25 Jan 2018 09:02:35 -0800 (PST)
MIME-Version: 1.0
From: Sabuj Pattanayek <sabujp AT gmail DOT com>
Date: Thu, 25 Jan 2018 09:02:34 -0800
Message-ID: <CAEeMGHuJMJPeT=bc6=bhMOKv_V0dUvYhyvAGUsknJHG-_TjjUQ@mail.gmail.com>
Subject: ps does not see all processes if used through a junctioned top level cygwin directory in cmd
To: cygwin AT cygwin DOT com

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    <JUNCTION>     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?

Thanks,
Sabuj

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