bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18403: 24.4.50; emacsclient sometimes hangs on exit with Lucid GUI c


From: Paul Eggert
Subject: bug#18403: 24.4.50; emacsclient sometimes hangs on exit with Lucid GUI client
Date: Mon, 08 Sep 2014 06:44:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]