]> granicus.if.org Git - procps-ng/commit
library: tweak logic for /proc not mounted, <pids> api
authorJim Warner <james.warner@comcast.net>
Sun, 14 Feb 2021 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Thu, 18 Feb 2021 07:35:32 +0000 (18:35 +1100)
commit333a1bb6b8eab9dd01e2ead15a49b1accb492e42
tree1e467ff730afd2aaed488e6a932dc75b409778d9
parent0b689adde0215309b54b28e6f9b3589d275f429a
library: tweak logic for /proc not mounted, <pids> api

Since 'procps_uptime' will access the /proc filesystem
the <pids> 'new' guy should should protect against the
possibility /proc isn't mounted when 'boot_seconds' is
established. A zero is better than the negative value.

[ the only distortion would be to PIDS_TIME_ELAPSED. ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c