From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#9100: timeout should use setitimer if available Date: Sat, 16 Jul 2011 12:23:16 -0700 Organization: UCLA Computer Science Department Message-ID: <4E21E524.4020501@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310844265 14343 80.91.229.12 (16 Jul 2011 19:24:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2011 19:24:25 +0000 (UTC) To: 9100@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 16 21:24:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiATM-0000i7-Kx for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2011 21:24:20 +0200 Original-Received: from localhost ([::1]:45840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiATL-0005ue-Ge for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2011 15:24:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiAT6-0005sU-2V for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 15:24:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiAT4-00068Q-LI for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 15:24:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiAT4-00068M-Ck for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 15:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QiAT3-0004jP-PB; Sat, 16 Jul 2011 15:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jul 2011 19:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9100 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131084421118139 (code B ref -1); Sat, 16 Jul 2011 19:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jul 2011 19:23:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiASY-0004iW-1W for submit@debbugs.gnu.org; Sat, 16 Jul 2011 15:23:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiASW-0004iL-DA for submit@debbugs.gnu.org; Sat, 16 Jul 2011 15:23:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiASQ-00065k-38 for submit@debbugs.gnu.org; Sat, 16 Jul 2011 15:23:23 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:41954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiASP-00065g-PE for submit@debbugs.gnu.org; Sat, 16 Jul 2011 15:23:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiASO-0005gY-MI for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 15:23:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiASM-00065H-10 for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 15:23:20 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:42355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiASL-00065C-IF for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 15:23:17 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 9778D39E80F2 for ; Sat, 16 Jul 2011 12:23:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OuwU4ZxZlwQZ for ; Sat, 16 Jul 2011 12:23:16 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 4967239E80E1 for ; Sat, 16 Jul 2011 12:23:16 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 16 Jul 2011 15:24:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49271 Archived-At: setitimer has nanosecond resolution, which is better than the one-second resolution that 'alarm' has. timeout should use setitimer if available, to take advantage of this. On 64-bit hosts, this has the additional advantage of increasing the upper bound for timeouts from 2**31 seconds to 2**63 seconds (about 68 years to about 292 billion years, which should be long enough for most practical purposes :-).