From: Jarek Czekalski <jarekczek@poczta.onet.pl>
To: emacs-devel@gnu.org
Subject: Re: cosmic timeout
Date: Sun, 03 Nov 2013 08:42:14 +0100 [thread overview]
Message-ID: <5275FE56.7010302@poczta.onet.pl> (raw)
In-Reply-To: <83ob629mkb.fsf@gnu.org>
W dniu 11/03/2013 04:44 AM, Eli Zaretskii pisze:
> This is "infinite wait", yes. See the commentary to that function:
My bad. Indeed it works according to the docs.
>> I guess that freezes my Emacs when I play with a vertical scroll
>> bar.
> It shouldn't: scroll-bar input counts as input, and should stop the
> wait. Some other factor is at work here.
>
> Perhaps you could post your findings, and let others suggest ideas
> for further debugging.
Findings are that gtk gets stuck in all threads waiting on poll-like
functions. I wonder why do *we* want to wait infinitely. Or the other
way: if there is a bug in glib, do we want to fix it or workaround it.
I will investigate, why the infinite wait is demanded by Emacs, but if
you like to answer the above question in advance, that helps.
I use unstable Debian. When I change the infinite wait to something like
0.1 sec, it seems to stop freezing. And undocumented function
g_main_query_context returns sometimes 0 and -1. Maybe in this case our
xgselect should not pass the infinite timeout to its further gnome calls.
Thanks,
Jarek
next prev parent reply other threads:[~2013-11-03 7:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-02 23:20 cosmic timeout Jarek Czekalski
2013-11-03 3:44 ` Eli Zaretskii
2013-11-03 7:42 ` Jarek Czekalski [this message]
2013-11-03 8:50 ` Stephen J. Turnbull
2013-11-03 10:01 ` Jarek Czekalski
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=5275FE56.7010302@poczta.onet.pl \
--to=jarekczek@poczta.onet.pl \
--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.