unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Can't interrupt directory_files_internal run from timer-event-handler
@ 2005-08-05  9:03 Klaus Zeitler
  2005-08-05 20:38 ` Richard M. Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Klaus Zeitler @ 2005-08-05  9:03 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-08-15 16:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05  9:03 Can't interrupt directory_files_internal run from timer-event-handler Klaus Zeitler
2005-08-05 20:38 ` Richard M. Stallman
2005-08-06  6:57   ` Eli Zaretskii
2005-08-07 17:15     ` Richard M. Stallman
2005-08-07 18:15       ` Eli Zaretskii
2005-08-08  8:44         ` Johan Vromans
2005-08-08 14:32           ` Johan Vromans
2005-08-09  0:27         ` Richard M. Stallman
2005-08-14 20:13           ` Sascha Wilde
2005-08-15 16:04             ` Richard M. Stallman
2005-08-09 23:15     ` Stefan Monnier
2005-08-09 23:07   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).