From unknown Sat Aug 16 16:11:29 2025 X-Loop: don@donarmstrong.com Subject: bug#1040: 23.0.60; emacs --daemon opens X11 connection Reply-To: Markus Triska , 1040@debbugs.gnu.org Resent-From: Markus Triska Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 27 Sep 2008 21:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1040 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122255112414833 (code B ref -1); Sat, 27 Sep 2008 21:40:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 27 Sep 2008 21:32:04 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8RLW0Nw014827 for ; Sat, 27 Sep 2008 14:32:01 -0700 Received: from mail.gnu.org ([199.232.76.166]:55889 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KjhMM-0002XF-Rd for emacs-pretest-bug@gnu.org; Sat, 27 Sep 2008 17:29:50 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KjhOQ-0004hy-Cg for emacs-pretest-bug@gnu.org; Sat, 27 Sep 2008 17:31:59 -0400 Received: from mail.gmx.net ([213.165.64.20]:45131) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KjhOP-0004gp-Nj for emacs-pretest-bug@gnu.org; Sat, 27 Sep 2008 17:31:58 -0400 Received: (qmail invoked by alias); 27 Sep 2008 21:31:54 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp063) with SMTP; 27 Sep 2008 23:31:54 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+wKDhLMRKw4F34ZLchxAHFXAPYMoT8VG+9FFIjse FCKyEbp7trqIMx Received: by mt-computer.local (Postfix, from userid 502) id 0EC5CB0F19F; Sat, 27 Sep 2008 23:31:55 +0200 (CEST) From: Markus Triska To: emacs-pretest-bug@gnu.org Message-Id: <20080927213155.0EC5CB0F19F@mt-computer.local> Date: Sat, 27 Sep 2008 23:31:55 +0200 (CEST) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. When I log in via "ssh -X -Y -v " to a remote host and do: $emacs --daemon then the daemon seems to open an X11 connection: debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384 debug1: client_request_x11: request from 127.0.0.1 55586 debug1: channel 1: new [x11] debug1: confirm x11 debug1: channel 1: FORCE input drain debug1: channel 1: free: x11, nchannels 2 debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384 debug1: client_request_x11: request from 127.0.0.1 55587 debug1: channel 1: new [x11] debug1: confirm x11 debug1: channel 1: FORCE input drain debug1: channel 1: free: x11, nchannels 2 debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384 debug1: client_request_x11: request from 127.0.0.1 55588 debug1: channel 1: new [x11] debug1: confirm x11 When I then try to log out (with C-d), the connection hangs until I press C-c, which kills the Emacs daemon. I think the daemon should not open an X11 connection by itself, and thus survive in cases like this. In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9) of 2008-09-24 on mt-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t From unknown Sat Aug 16 16:11:29 2025 X-Loop: don@donarmstrong.com Subject: bug#1040: 23.0.60; emacs --daemon opens X11 connection Reply-To: Dan Nicolaescu , 1040@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 28 Sep 2008 02:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1040 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1040-submit@emacsbugs.donarmstrong.com id=B1040.122256713615205 (code B ref 1040); Sun, 28 Sep 2008 02:05:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1040) by emacsbugs.donarmstrong.com; 28 Sep 2008 01:58:56 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8S1wrfZ015198 for <1040@emacsbugs.donarmstrong.com>; Sat, 27 Sep 2008 18:58:54 -0700 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m8S1wgws026369; Sat, 27 Sep 2008 18:58:42 -0700 (PDT) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id m8S1wfLC018690; Sat, 27 Sep 2008 18:58:41 -0700 (PDT) Date: Sat, 27 Sep 2008 18:58:41 -0700 (PDT) Message-Id: <200809280158.m8S1wfLC018690@mothra.ics.uci.edu> From: Dan Nicolaescu To: Markus Triska Cc: 1040@debbugs.gnu.org References: <20080927213155.0EC5CB0F19F@mt-computer.local> In-Reply-To: <20080927213155.0EC5CB0F19F@mt-computer.local> (Markus Triska's message of "Sat, 27 Sep 2008 23:31:55 +0200 (CEST)") Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: m8S1wgws026369 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Markus Triska writes: > When I log in via "ssh -X -Y -v " to a remote host and do: > > $emacs --daemon > > then the daemon seems to open an X11 connection: I checked in a fix, please test. Thx From unknown Sat Aug 16 16:11:29 2025 X-Loop: don@donarmstrong.com Subject: bug#1040: 23.0.60; emacs --daemon opens X11 connection Reply-To: Markus Triska , 1040@debbugs.gnu.org Resent-From: Markus Triska Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 28 Sep 2008 02:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1040 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1040-submit@emacsbugs.donarmstrong.com id=B1040.122257019127736 (code B ref 1040); Sun, 28 Sep 2008 02:55:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1040) by emacsbugs.donarmstrong.com; 28 Sep 2008 02:49:51 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8S2nltO027730 for <1040@emacsbugs.donarmstrong.com>; Sat, 27 Sep 2008 19:49:49 -0700 Received: (qmail invoked by alias); 28 Sep 2008 02:49:41 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp048) with SMTP; 28 Sep 2008 04:49:41 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+mNWsaKA+m9dJTbLJv0XxF796WljApW2j1/cnufQ 9HcIDK5O//SJUG Received: by mt-computer.local (Postfix, from userid 502) id 48293B0F5EA; Sun, 28 Sep 2008 04:49:42 +0200 (CEST) From: Markus Triska To: Dan Nicolaescu Cc: 1040@debbugs.gnu.org References: <20080927213155.0EC5CB0F19F@mt-computer.local> <200809280158.m8S1wfLC018690@mothra.ics.uci.edu> Date: Sun, 28 Sep 2008 04:49:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.84 Dan Nicolaescu writes: > I checked in a fix, please test. It fixes this problem for me, thank you.