From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel Subject: Re: CVS Emacs on Windows XP takes 60 seconds to start Date: Tue, 02 Sep 2008 20:41:58 -0400 Message-ID: References: <48BD9EA0.60608@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220402924 20316 80.91.229.12 (3 Sep 2008 00:48:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 00:48:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 03 02:49:39 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KagYx-0006tl-6V for ged-emacs-devel@m.gmane.org; Wed, 03 Sep 2008 02:49:35 +0200 Original-Received: from localhost ([127.0.0.1]:56257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KagXx-0005zw-UX for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2008 20:48:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KagXf-0005fY-5n for emacs-devel@gnu.org; Tue, 02 Sep 2008 20:48:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KagXd-0005dG-Hq for emacs-devel@gnu.org; Tue, 02 Sep 2008 20:48:14 -0400 Original-Received: from [199.232.76.173] (port=52488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KagXd-0005d1-AJ for emacs-devel@gnu.org; Tue, 02 Sep 2008 20:48:13 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:44472 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KagXc-0004cF-Kb for emacs-devel@gnu.org; Tue, 02 Sep 2008 20:48:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KagXa-0006BR-RT for emacs-devel@gnu.org; Wed, 03 Sep 2008 00:48:10 +0000 Original-Received: from node13.194.100.208.1dial.com ([208.100.194.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2008 00:48:10 +0000 Original-Received: from flitterio by node13.194.100.208.1dial.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2008 00:48:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: node13.194.100.208.1dial.com X-Draft-From: ("nntp+news.gmane.org:gmane.emacs.devel" 103454) X-Random-Quote: Do not fear death so much, but rather the inadequate life. -- Bertolt Brecht User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt) Cancel-Lock: sha1:Gg6yRlgysmQDnluox2W6QY/iAU4= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103457 Archived-At: I wrote: > Eli Zaretskii wrote: >> [...] please see if it goes >> away if you modify the code of the function `stat' to make this `if' >> condition (on w32.c) >> >> if (!(NILP (Vw32_get_true_file_attributes) >> || (EQ (Vw32_get_true_file_attributes, Qlocal) >> && devtype != DRIVE_FIXED && devtype != DRIVE_RAMDISK)) >> /* No access rights required to get info. */ >> && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, >> FILE_FLAG_BACKUP_SEMANTICS, NULL)) >> != INVALID_HANDLE_VALUE) >> >> to always evaluate to zero, thus bypassing the code in the block that >> follows the `if' clause and calls get_file_owner_and_group. > I changed the above condition to: > > if (0) > > and rebuilt. The resulting emacs.exe starts immediately (both "emacs > -q" and "emacs -Q"), and there are no RPC calls made to any external > host when Emacs is starting. Eli, Given that the root cause of this problem is a misconfigured firewall that prevents the host from making RPC calls to its domain controller(s) (or LDAP server(s) -- they may be the same on my company's network), I'm not sure that any change to Emacs is needed. Is this issue likely to bite other people? Can we assume that the Windows host has RPC access to its domain controllers and/or LDAP servers? -- Fran