[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BLOCK_INPUT on Mac OS X
From: |
Stefan |
Subject: |
Re: BLOCK_INPUT on Mac OS X |
Date: |
Tue, 07 Sep 2004 08:27:59 -0400 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) |
>> 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);
}