[Bug 192573] Add ps(1) option: Print process start time in seconds since 1970

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 05 Oct 2024 17:02:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192573

--- Comment #5 from Dave Eddy <dave@daveeddy.com> ---
(In reply to Mark Linimon from comment #4)

hello! happy 10 years since i wrote this patch - i had long since forgotten
about this!

I wrote this patch originally because of the company I was working for at the
time - we were transitioning to FreeBSD and my job was largely to port our
software and get it working on FreeBSD.  We had some tooling that showed our
services running (and their PIDs) and it was helpful to see how long ago a
process was started and how long it was running.  Like I mentioned originally,
on other operating systems we could just stat(2) /proc/<pid> but that didn't
work for us on FreeBSD.  When I looked into it more I saw that it probably made
more sense for this logic to be in the tooling (like `ps`) instead of the
`/proc` filesystem - so this patch was born.

Looking at the comments on this patch I looked up "etimes" with `ps` and I
agree that it would be sufficient to accomplish what I originally wanted.

I, personally, don't have much use for this patch anymore - but I will leave it
up to others to see if this is something they want to include.

Thanks!
dave

-- 
You are receiving this mail because:
You are the assignee for the bug.