]> git.eshelyaron.com Git - emacs.git/commit
process-attributes uses CLOCK_BOOTTIME for uptime
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Jun 2025 00:07:30 +0000 (17:07 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:15:34 +0000 (10:15 +0200)
commit231c7c4c9d584b531b4d8309051a21bb79f7d44b
tree423b8ff0d78d1886805376d86114e0298db2fc95
parent90b3ca7122838f718eef7d49c6f3d65e7ea8ba8c
process-attributes uses CLOCK_BOOTTIME for uptime

* src/sysdep.c (get_host_uptime) [GNU_LINUX || CYGWIN || __ANDROID__]:
New function, replacing get_host_boot_time.
Use CLOCK_BOOTTIME instead of inspecting /proc/stat.
All callers changed.  This should be an even better way to fix Bug#63496.

(cherry picked from commit 037fb02135ab5b5d96e1167b9333d6a3a2acad11)
src/sysdep.c