From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#4064: 23.1; Hang up from tty mode when X server goes away Date: Thu, 6 Aug 2009 23:29:56 -0700 (PDT) Message-ID: <200908070629.n776TudV017777@godzilla.ics.uci.edu> References: <200908061118.n76BIJ6k018846@runbench-dev.uk.level5networks.com> Reply-To: Dan Nicolaescu , 4064@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249627631 2937 80.91.229.12 (7 Aug 2009 06:47:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2009 06:47:11 +0000 (UTC) Cc: 4064@emacsbugs.donarmstrong.com To: "Dickon Reed \(dreed\)" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 07 08:47:04 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MZJEF-0000Y2-8B for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 08:47:03 +0200 Original-Received: from localhost ([127.0.0.1]:49931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZJEE-0003O3-Lq for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 02:47:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZJE9-0003I5-9R for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 02:46:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZJE3-0003DW-TC for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 02:46:56 -0400 Original-Received: from [199.232.76.173] (port=54508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZJE3-0003DA-0w for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 02:46:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44697) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MZJE2-0005EN-8V for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 02:46:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n776kmnX017078; Thu, 6 Aug 2009 23:46:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n776e4KY016415; Thu, 6 Aug 2009 23:40:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 07 Aug 2009 06:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4064 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4064-submit@emacsbugs.donarmstrong.com id=B4064.124962673415928 (code B ref 4064); Fri, 07 Aug 2009 06:40:04 +0000 Original-Received: (at 4064) by emacsbugs.donarmstrong.com; 7 Aug 2009 06:32:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n776WDGm015924 for <4064@emacsbugs.donarmstrong.com>; Thu, 6 Aug 2009 23:32:14 -0700 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n776TvWN009011; Thu, 6 Aug 2009 23:29:57 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n776TudV017777; Thu, 6 Aug 2009 23:29:56 -0700 (PDT) In-Reply-To: <200908061118.n76BIJ6k018846@runbench-dev.uk.level5networks.com> (Dickon Reed's message of "Thu, 6 Aug 2009 12:18:19 +0100") Original-Lines: 102 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n776TvWN009011 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@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 07 Aug 2009 02:46:56 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29951 Archived-At: "Dickon Reed (dreed)" writes: > I am running my own build of emacs 23.1.1 on CentOS 4.4. I start emacs > under screen and run server-start from my init file. I then login via > ssh (PuTTy) from an Windows XP box, connect to the screen session, and > use make-frame-on-display to open a frame on a Cygwin/X version 1.5.3 > (20090222) X server running on my desktop Windows XP box. So far, > everything works fine. After a few hours work, I hibernate my Windows > box, and then log in via ssh from a different site. I find the emacs > running screen unresponsive, whereas I'd have liked the emacs > session under screen to be working. > > Later, I woke up the Windows box, logged back into the screen session > and found it had recently reported that it had lost the connection to > the X server (see log below). At that point, I can only a frame again > and everything is back to normal. I don't have a way to reproduce your setup, but there's an easy workaround to this problem: instead of starting emacs in a screen session, use: emacs --daemon it will start it in background. Then you can use emacsclient -t to connect to it on a terminal or emacsclient -c to create X11 frames. > > > In GNU Emacs 23.1.1 (i686-pc-linux-gnu, X toolkit) > of 2009-07-30 on runbench-dev.uk.level5networks.com > configured using `configure '--with-gif=no'' > > 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: utf-8-unix > default-enable-multibyte-characters: t > > Major mode: Emacs-Lisp > > Minor modes in effect: > diff-auto-refine-mode: t > tooltip-mode: t > mouse-wheel-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > global-auto-composition-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > e SPC t h e SPC r e s u l t s SPC s t o r e SPC w a > s SPC b r o k e n " > > c c > a l l b a c k s SPC a n d > o r SPC f i l e s SPC a r e SPC n o t SPC w o r k i > n g " h g SPC q p o p h g SPC q > p u l l SPC - u h g SPC q p u s h SPC - a > h g SPC q a p q h g SPC > q f i n SPC - a h g SPC q a d d > > h g SPC q p a > a p SPC - s h g SPC q p o p SPC > - a h g SPC q p u s h SPC - a h g > SPC > h g SPC t i p h g SPC p u s h > C-x n ESC [ > 1 5 ~ ESC O A ESC O B ESC O B C-x C-f ~ / . e m a c > s RET C-x o C-x 0 C-s f 7 C-s ESC O A ESC O B ESC O > B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC > O A C-s d r C-x o ESC x r e p o r t - e m TAB RET > > Recent messages: > Wrote /local/dr/runbench/nagbench.py > Mark saved where search started [3 times] > Saving file /local/dr/runbench/nagbench.py... > Wrote /local/dr/runbench/nagbench.py > (No files need saving) > Compilation finished > Quit > call-interactively: Text is read-only [4 times] > Connection lost to X server `dr-desktop:0.0' > Mark saved where search started [2 times]