Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Oct 2024 17:02:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 192573] Add ps(1) option: Print process start time in seconds since 1970
Message-ID:  <bug-192573-227-OPbsAsbxjO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192573-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192573-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192573

--- 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 t=
he
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 original=
ly,
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 leav=
e it
up to others to see if this is something they want to include.

Thanks!
dave

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192573-227-OPbsAsbxjO>