From: Paul Eggert <eggert@cs.ucla.edu>
To: Dmitry Antipov <dmantipov@yandex.ru>, Christoph <cschol2112@gmail.com>
Cc: 18403@debbugs.gnu.org
Subject: bug#18403: 24.4.50; emacsclient sometimes hangs on exit with Lucid GUI client
Date: Mon, 08 Sep 2014 06:44:47 -0700 [thread overview]
Message-ID: <540DB2CF.7050701@cs.ucla.edu> (raw)
In-Reply-To: <540D6CBA.7090904@yandex.ru>
Dmitry Antipov wrote:
> IIUC dpyinfo->connection is no longer valid after call to
> X(t)CloseDisplay (dpyinfo->display).
> But this fd is still > 0, so we hit eassert at sysdep.c:2408:
I cannot reproduce this new problem on Ubuntu 14.04, configuring trunk
bzr 117843 --with-x-toolkit=lucid. x_delete_terminal calls
XtCloseDisplay, and then calls emacs_close (dpyinfo->connection), and
the 'close' returns 0.
Perhaps you configured with some other toolkit? That might explain the
discrepancy.
Does it fix things for you if you add a line 'dpyinfo->connection = -1;'
after the existing line 'dpyinfo->display = 0;' in xterm.c's
x_connection_closed? Though that might cause a file descriptor leak;
I'm not fully following what's going on here, since I can't reproduce
the new problem.
next prev parent reply other threads:[~2014-09-08 13:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-04 3:05 bug#18403: 24.4.50; emacsclient sometimes hangs on exit with Lucid GUI client Christoph Scholtes
2014-09-07 7:25 ` Paul Eggert
2014-09-08 1:36 ` Christoph
2014-09-08 1:40 ` Christoph
2014-09-08 2:48 ` Paul Eggert
2014-09-08 8:45 ` Dmitry Antipov
2014-09-08 13:44 ` Paul Eggert [this message]
2014-09-08 14:18 ` Dmitry Antipov
2014-09-08 21:33 ` Christoph
2014-09-13 16:21 ` Christoph
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=540DB2CF.7050701@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=18403@debbugs.gnu.org \
--cc=cschol2112@gmail.com \
--cc=dmantipov@yandex.ru \
/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.