This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] default ps -W process start time to system boot time when inaccessible, 0, -1


On 3/23/19 1:41 PM, Achim Gratz wrote:
> Corinna Vinschen writes:
>>> replacing one lie with another that is less easy to spot doesn't sound
>>> the right thing to do.  How about ps if reported "N/A" or something to
>>> that effect instead?
>>
>> 1 Jan 1970 may also be a good hint...
> 
> Well, that was the point: I can deduce just from that date that ps
> didn't actually get data for the start time.  If it starts replacing
> this with the start time of the system instead, it might take a while
> for me to see what is going on.

On the other hand, the lie is pretty realistic - the program can't have
been running longer than your computer has been powered on, and all such
affected programs will have the same timestamp.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]