From: Stefan <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: BLOCK_INPUT on Mac OS X
Date: Tue, 07 Sep 2004 08:27:59 -0400 [thread overview]
Message-ID: <m1llfm2rnh.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <wld60yjxpd.wl@church.math.s.chiba-u.ac.jp> (YAMAMOTO Mitsuharu's message of "Tue, 07 Sep 2004 17:21:50 +0900")
>> Can you try and figure out where in the C code is Emacs looping? A
>> well placed QUIT in there should do the trick.
> It seems to be looping in `emacs_read' called from `Fcall_process'.
> Here's the backtrace. I believe this can also be reproducible in
> other "SIGIO systems".
Can you try the patch below?
Beware, IIRC, if emacs_read is ever called somewhere where BLOCK_INPUT is
set, this could introduce other problems.
Stefan
--- orig/src/sysdep.c
+++ mod/src/sysdep.c
@@ -1,6 +1,6 @@
/* Interfaces to system-dependent kernel and library entries.
- Copyright (C) 1985, 86,87,88,93,94,95,1999,2000,01,2003
- Free Software Foundation, Inc.
+ Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995, 1999,
+ 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -3258,7 +3258,8 @@
register int rtnval;
while ((rtnval = read (fildes, buf, nbyte)) == -1
- && (errno == EINTR));
+ && (errno == EINTR))
+ QUIT;
return (rtnval);
}
next prev parent reply other threads:[~2004-09-07 12:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-03 12:41 BLOCK_INPUT on Mac OS X YAMAMOTO Mitsuharu
2004-09-03 13:51 ` Kim F. Storm
2004-09-03 16:48 ` Stefan Monnier
2004-09-04 9:07 ` YAMAMOTO Mitsuharu
2004-09-06 16:17 ` Stefan
2004-09-07 8:21 ` YAMAMOTO Mitsuharu
2004-09-07 12:27 ` Stefan [this message]
2004-09-08 11:38 ` YAMAMOTO Mitsuharu
2004-09-08 12:56 ` Stefan Monnier
2004-11-25 19:13 ` Dr. Carsten Bormann
2004-11-25 19:58 ` Stefan Monnier
2004-11-26 10:09 ` YAMAMOTO Mitsuharu
2004-11-26 14:24 ` POSIX_SIGNALS (was: BLOCK_INPUT on Mac OS X) Stefan Monnier
2004-11-29 10:12 ` YAMAMOTO Mitsuharu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1llfm2rnh.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.