[PATCH 0/2] default ps -W process start time to boot time when unavailable

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Sun Mar 24 02:23:00 GMT 2019


non-elevated users can not access system startup process start times,
defaulting to time_t 0, displaying as Dec 31/Jan 1 depending on time zone,
so instead use system boot time, which is within seconds of correct,
to avoid WMI overhead getting correct system startup process start time

Brian Inglis (2):
  default ps -W process start time to system boot time when inaccessible, 0, -1
  get and convert boot time once and use as needed

 winsup/utils/ps.cc | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

-- 
2.17.0



More information about the Cygwin-patches mailing list