bug#65255: uptime's boot time is inconsistent after VM sleep & resume

2023-08-12 Thread Bruno Haible
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

bug#65255: uptime's boot time is inconsistent after VM sleep & resume

2023-08-12 Thread Bruno Haible
On the following platforms: - Linux (that includes glibc-based systems, Alpine Linux, Raspbian), - NetBSD, - Cygwin, - Minix, the "up" duration is inconsistent after the VM in which the OS is running has been 1. put into sleep / saved / pause mode (terminology depends on the