bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: boot time on Linux


From: Paul Eggert
Subject: Re: boot time on Linux
Date: Wed, 9 Aug 2023 23:22:17 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 2023-08-09 19:14, Po Lu wrote:
This uses the uptime counter (which also results in an SELinux denial
for me, but different Android distributions have SELinux policies of
varying strictness), which cannot establish the precise time the system
started

Emacs doesn't need a precise boot time. All it really needs is an integer that uniquely identifies the current OS boot.

 since time elapses between the read from the uptime counter and
the read from the RTC.

Emacs allows for up to one second of slop in computing the boot time. (In other words, it assumes that reboots are at least one second apart.) So if there are minor errors in computing the boot time it should be OK. If the errors are greater than one second, though, lock-file may assume that locks are stale when they're not.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]