From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo Liu <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Blocking call to accept-process-output with quit inhibited!!
Date: Fri, 21 Jun 2013 10:54:01 -0400 [thread overview]
Message-ID: <jwvtxkrcyfr.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m11u7wnhgk.fsf@gmail.com> (Leo Liu's message of "Fri, 21 Jun 2013 13:47:07 +0800")
> * comint.el (comint-redirect-results-list-from-process): Fix random
> delay.
> I am seeing "Blocking call to accept-process-output with quit
> inhibited!!" from time to time.
> How does this mean?
Just what it says: a call to accept-process-output was done at a time
when quit is inhibited, and the call can block, thus rendering Emacs
completely unresponsive.
> I can't see where comint has inhibited quit.
quit is inhibited when running timers, process-filters and other
such asynchronous events.
So comint doesn't need to inhibit-quit itself for such a warning to show
up, if its code is executed from a process-filter.
Try to figure out how/when a process-filter (or timer...) can end up
running the while + accept-process-output loop, and then think about
whether that really should happen, and if so make sure the
process-filter (or timer...) uses with-local-quit before running
that loop.
Stefan
next prev parent reply other threads:[~2013-06-21 14:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 5:47 Blocking call to accept-process-output with quit inhibited!! Leo Liu
2013-06-21 6:59 ` Leo Liu
2013-06-21 14:54 ` Stefan Monnier [this message]
2013-06-22 1:20 ` Leo Liu
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtxkrcyfr.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=sdl.web@gmail.com \
/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 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).