GNU bug report logs - #65255
uptime's boot time is inconsistent after VM sleep & resume

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Sat, 12 Aug 2023 23:01:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bruno Haible <bruno <at> clisp.org>
To: 65255 <at> debbugs.gnu.org
Subject: bug#65255: uptime's boot time is inconsistent after VM sleep & resume
Date: Sun, 13 Aug 2023 01:21:06 +0200
PS: I wrote:
> (print_uptime): Don't read /proc/uptime

You might wonder: What is the replacement? Namely, as a fallback (for
situations where the current process is running inside a container or jail):
  - On Linux, the auxiliary function get_linux_boot_time_final_fallback
    reads the info from /proc/uptime.
  - On macOS and BSD systems, we don't need to read it, because the sysctl
    invoked by the auxiliary function get_bsd_boot_time_final_fallback
    reads the same info, without needing a mounted /proc file system.
  - On Minix and Cygwin, no replacement is needed, because there is no
    "container" or "jail" concept in these OSes.

Bruno







This bug report was last modified 1 year and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.