From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: boot time on Linux Date: Wed, 9 Aug 2023 23:22:17 -0700 Organization: UCLA Computer Science Department Message-ID: References: <87tttmpt5h.fsf@turtle.gmx.de> <5962135.d8TiXCRyrx@nimes> <875y5nve2k.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2137"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Robert Pluim , bug-gnulib@gnu.org, =?UTF-8?Q?P=c3=a1draig_Brady?= , Sven Joachim , 64937@debbugs.gnu.org, Natanael Copa , Emacs-devel@gnu.org, Thorsten Kukuk To: Po Lu , Bruno Haible Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Thu Aug 10 08:22:42 2023 Return-path: Envelope-to: gnu-bug-gnulib@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTz4E-0000Hl-1c for gnu-bug-gnulib@m.gmane-mx.org; Thu, 10 Aug 2023 08:22:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTz3z-0002LO-Hu; Thu, 10 Aug 2023 02:22:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTz3v-0002Jp-I0; Thu, 10 Aug 2023 02:22:25 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTz3t-000529-5k; Thu, 10 Aug 2023 02:22:22 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id C0F893C011BD8; Wed, 9 Aug 2023 23:22:18 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id QYMfihtzJUhY; Wed, 9 Aug 2023 23:22:18 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 50A133C011BD9; Wed, 9 Aug 2023 23:22:18 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 50A133C011BD9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1691648538; bh=ruReh1RmoEju9e9sEJ3PHqVp8Ca4o+wk6ivJDLHJH4E=; h=Message-ID:Date:MIME-Version:To:From; b=csTHnc/xMk3l6g6Jafw9MGtdteQyOwuPw/QKR+jXIc1hjHVAvBry3gbQm5AOsUDPi AcrMBcJDYSP5LDhlfY22BhgKsqCgSJmWRyuOZfO3XeUB8kt3RWiG+yLYKfJKv0rSPE UuTkATlyqDIfo6sFN9shNEm7n/6LVT42c6YsW2/I+hCzDdUEAZYj1Eeb5BfC0grAnx dJc/LuME9DzDAdfx7Z+wt0SjVtJJJFxV/V716YzZjgkpLhECZkLsRGsdG11q4PVKh0 RAO/pZC5MMVxovsdmqD0iJsQQKhmO8EbqWKFvsxAUtmwKj6hMUbTUE3dDg5jO03bMY bCk9Lt01EEQoQ== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3n6FqWcnPS0z; Wed, 9 Aug 2023 23:22:18 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 0DE583C011BD8; Wed, 9 Aug 2023 23:22:18 -0700 (PDT) Content-Language: en-US In-Reply-To: <875y5nve2k.fsf@yahoo.com> Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -60 X-Spam_score: -6.1 X-Spam_bar: ------ X-Spam_report: (-6.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-4.14, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Original-Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.comp.lib.gnulib.bugs:48136 gmane.emacs.devel:308509 Archived-At: 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.