From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123460 invoked by alias); 21 Mar 2019 19:08:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 122666 invoked by uid 89); 21 Mar 2019 19:08:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=unique X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Mar 2019 19:08:29 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MwQKr-1gq4X016yj-00sK2J for ; Thu, 21 Mar 2019 20:08:27 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id BD09FA80775; Thu, 21 Mar 2019 20:08:26 +0100 (CET) Date: Thu, 21 Mar 2019 19:08:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: ps -W now showing STIME Dec 31 Message-ID: <20190321190826.GV3908@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20190321145237.GF2167@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ijf6z65S790CMqo8" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-03/txt/msg00535.txt.bz2 --ijf6z65S790CMqo8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1293 On Mar 21 10:02, Brian Inglis wrote: > On 2019-03-21 08:52, Corinna Vinschen wrote: > > On Mar 21 08:07, Brian Inglis wrote: > >> With latest Cygwin ps -W is now showing STIME Dec 31 for Windows start= up > >> processes - these should be limited to actual start or uptime if possi= ble. > > It's not possible. Starttime requires ability to open process. >=20 > Everything on Cygwin updated Mar 18. > Running ps under bash from mintty launched from XDG. > Ran cygcheck on ps below, and attached strace not showing much useful. > Running under gdb, ps appears never to call GetProcessTimes on startup pr= ocesses > including my own startup scheduled tasks, so start_time is always zero, a= nd is > offset -7 to MST. > Showing below also unique startup programs, unique other programs with no= rmal > times from System32, running Cygwin processes, and installed releases FYI. > I could rebuild ps with debugging and add logging if not reproducible. Sorry, but I really can't follow. It's really simple: If the user can open a process, starttime is available, if the user can not open the process, starttime is not available. Just check the ps source. If you see another solution (no WMI, Bill is right there), feel free to providea patch. Corinna --=20 Corinna Vinschen Cygwin Maintainer --ijf6z65S790CMqo8 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyT4SoACgkQ9TYGna5E T6AYBQ//ShwIlYj8gG9EVFFclSU/82njM0YGVWgur4G+J10Ih7h7NfXk7QM6R7Kg WDhVuxfuvqim39+IIQjiFGlviA2W2r4R0RTdVtLh2aKtBox4PSFCf82NTAuIJQ02 zZNweAUEefWdE6Awfr/Hcu+L7ieCTZYL+vbwCddlsSJODjS3jK2i8llIqRfxKP0m gjW4aIrZQoPiV16Mus6Sl92l9HhZoR5tWCN1Qq1twJDPd7Eu/tSg2U222OBWCwLt xEzKJubIzdMtsUfWPQO0xk/NWIueMXER8tMOgm9GYpz0yT45ARp+YlPye0bRW18B zUVuz9uKob6HQcbkClW1NybfbN0/WC1HMkfnTCY5K54+2AgASAAW7e09PbJfLq48 62GFRKMIaJVgTb97X4UfemimGdT9mxw5h2mKmHIX3G9m7era5nqskLikCvRbp26g rC1/xTp7CIuJlFXbsUkmUGOebjxv05E13Tm75aEbpKO1vWefy98HGsJOFryHl9Of FFo9VZJzdU46+fwGJa92MXMJaNvjhwaxLb/25z48Yxh1POAbdTjh8DTrjGGzWAGA ObybOE2COvrN0XcclVXEwF+kY5+Wq1LG2q7G3ZPjimfPOfFFUWROMh35PV6/i4Se Brv9G5Omgp4R0KKjhTQdIo7ibJKTMkyARoU4+UnBYhRuqDDzH4g= =4jK7 -----END PGP SIGNATURE----- --ijf6z65S790CMqo8--