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:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=pD UA2quSMSMJp94+QizkCaPcikPrJ8xBcYlYceIOwsoBTc6vuTZzNHR20OAZd4K6Xa UjIZhg3RrqZpPBVo1Buex5aoA0e2CxknHpDUxKwoI0tO9O6RkQhlEP+Li02q0S1m UPJmSxxIoh60pEOpwWrX6gJkJzFv+QGckBEA5dAKY= 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:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=r0Z8CDZC LvfFbmx0Tq3rBQ3ixUE=; b=TYeOhTl2tPaW29oVmegED4dE9j16lkv+vKoXv1t7 Y5TPwarMVDkDzfcXCrZ02No7lDWDJGO5l7qEcZoOJN1U20T+w9bF4toGhIifdyhf C/8K0/IJKsOoJ9CcqRN3bJ4Aeo7fyZN1daDh4amtVEoSx+oULlCQrZCDM7oasm67 pAQ= 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=4.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f47.google.com MIME-Version: 1.0 X-Received: by 10.67.22.67 with SMTP id hq3mr2423454pad.132.1382609036264; Thu, 24 Oct 2013 03:03:56 -0700 (PDT) In-Reply-To: <21095.51020.811223.778148@consult.pretender> References: <21093 DOT 42532 DOT 550364 DOT 992074 AT consult DOT pretender> <20131023082535 DOT GA5134 AT calimero DOT vinschen DOT de> <21095 DOT 51020 DOT 811223 DOT 778148 AT consult DOT pretender> Date: Thu, 24 Oct 2013 11:03:56 +0100 Message-ID: Subject: Re: ps weirdness... From: Anthony Geoghegan To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes I was intrigued by Jeff's post so I tried a couple of experiments of my own and was able to duplicate the same behaviour - including the bash process being shown as a Windows process - on my Cygwin installation. The only difference was that I was getting Jan 1 instead of Dec 31 for the STIME. FWIW, I'm running 32-bit version of Cygwin on 64-bit Windows 7 and can supply the output of cygcheck if it's useful. Also, I started my Cygwin shell yesterday so "Oct 23" is the correct STIME for the bash and ssh-agent processes. Thanks, Corinna, for the explanation about how piping to grep sometimes shows how the bash process forks to start the grep process. However, I'm curious as to why there's also a duplicate ssh-agent process every now and again. Regards, Anthony $ while true; do date; ps -W | grep ssh-agent; sleep .3; echo; done Thu, Oct 24, 2013 10:23:58 AM 948 1 948 948 ? 12665 Oct 23 /usr/bin/ssh-agent Thu, Oct 24, 2013 10:23:58 AM 948 1 948 948 ? 12665 Oct 23 /usr/bin/ssh-agent 5112 0 0 5112 pty0 12665 Jan 1 /usr/bin/ssh-agent Thu, Oct 24, 2013 10:23:59 AM 948 1 948 948 ? 12665 Oct 23 /usr/bin/ssh-agent 4708 0 0 4708 pty0 12665 Jan 1 /usr/bin/ssh-agent Thu, Oct 24, 2013 10:23:59 AM 948 1 948 948 ? 12665 Oct 23 /usr/bin/ssh-agent Thu, Oct 24, 2013 10:24:00 AM 948 1 948 948 ? 12665 Oct 23 /usr/bin/ssh-agent $ date; ps -W | grep bash Thu, Oct 24, 2013 10:46:13 AM 5228 4688 5228 5428 pty0 12665 Oct 23 /usr/bin/bash 6708 0 0 6708 pty0 12665 10:46:13 C:\cygwin\bin\bash.exe $ date; ps -W | grep bash Thu, Oct 24, 2013 10:46:29 AM 5228 4688 5228 5428 pty0 12665 Oct 23 /usr/bin/bash 5492 5228 5228 5492 pty0 12665 10:46:29 /usr/bin/bash $ date; ps -W | grep bash Thu, Oct 24, 2013 10:46:32 AM 5228 4688 5228 5428 pty0 12665 Oct 23 /usr/bin/bash 7156 0 0 7156 pty0 12665 10:46:33 C:\cygwin\bin\bash.exe $ date; ps -W | grep bash Thu, Oct 24, 2013 10:46:34 AM 5228 4688 5228 5428 pty0 12665 Oct 23 /usr/bin/bash 7380 0 0 7380 pty0 12665 10:46:35 C:\cygwin\bin\bash.exe -- 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