From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.devel Subject: Can't interrupt directory_files_internal run from timer-event-handler Date: Fri, 05 Aug 2005 11:03:40 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123233477 27713 80.91.229.2 (5 Aug 2005 09:17:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2005 09:17:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 05 11:17:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0yJY-0007l6-I2 for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2005 11:16:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0yMO-0000JC-HM for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2005 05:19:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E0yDB-0004wI-HR for emacs-devel@gnu.org; Fri, 05 Aug 2005 05:09:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E0yD9-0004vM-CE for emacs-devel@gnu.org; Fri, 05 Aug 2005 05:09:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0yD9-0004uG-0N for emacs-devel@gnu.org; Fri, 05 Aug 2005 05:09:51 -0400 Original-Received: from [192.11.226.163] (helo=hoemail2.lucent.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E0yKF-00077d-Bs for emacs-devel@gnu.org; Fri, 05 Aug 2005 05:17:11 -0400 Original-Received: from nbgif1.de.lucent.com (h135-246-31-82.lucent.com [135.246.31.82]) by hoemail2.lucent.com (8.12.11/8.12.11) with ESMTP id j7593fRu028684 for ; Fri, 5 Aug 2005 04:03:41 -0500 (CDT) Original-Received: from sfsws1.de.lucent.com (sfsws1 [135.246.31.38]) by nbgif1.de.lucent.com (8.11.7p1+Sun/8.11.7) with ESMTP id j7593ep22869 for ; Fri, 5 Aug 2005 11:03:40 +0200 (MEST) Original-Received: from sfsw51.de.lucent.com (sfsw51 [135.246.72.99]) by sfsws1.de.lucent.com (8.11.7p1+Sun/8.8.5) with ESMTP id j7593ea27021 for ; Fri, 5 Aug 2005 11:03:40 +0200 (MEST) Original-Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id j7593eL13020; Fri, 5 Aug 2005 11:03:40 +0200 (MEST) X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f Original-To: emacs-devel@gnu.org X-Kibo-Says: There's one reason for a guess, and it's atoms. User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v) 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:41524 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41524 The following problem occurs with CVS emacs + ECB under Solaris 5.8. While ECB performs its stealth update activities, emacs sometimes seems to hang for a long time. gdb shows the following function and backtrace: directory_files_internal (directory=16076323, full=3313665, match=3313665, nosort=3313713, attrs=0, id_format=3313665) at /vol/freeware/cvs/emacs/head/emacs/src/dired.c:226 226 if (dp == NULL && errno == EAGAIN) (gdb) p directory $1 = 16076323 (gdb) pr "/vol/cld_scratch" (gdb) xbacktrace "directory-files" "apply" "ecb-directory-files" "ecb-check-emptyness-of-dir" "ecb-stealthy-empty-dir-check" "ecb-stealthy-updates" "apply" "byte-code" "timer-event-handler" I think emacs waits for readdir in dired.c:223 to complete and unfortunately C-g doesn't work during stealthy update. The culprit BTW is a mount point to a VAX cluster that e.g. need 20 minutes to return from 'M-x eval-expression (directory-files "/vol/cld_scratch")'. While I can interrupt 'M-x eval-expression (directory-files "/vol/cld_scratch")' with C-g just fine, C-g has no effect when this command is run from timer-event-handler. -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- The only problem with being a man of leisure is that you can never stop and take a rest.