From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Adam_Sj=C3=83=C2=B8gren_via_=22Emacs_development_discussions=2E?= Newsgroups: gmane.emacs.devel Subject: Re: Log out hanging after X-forwarded emacsclient [Was: Closing displays GTK+ bug] Date: Fri, 17 Apr 2020 18:06:13 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87v9lyayh6.fsf@tullinup.koldfront.dk> References: <83zhbcg6s4.fsf@gnu.org> <87r1wng2ki.fsf@linaro.org> <83o8rrenn1.fsf@gnu.org> <87blnr6uck.fsf@tullinup.koldfront.dk> Reply-To: =?UTF-8?Q?Reply-to=3A_Adam_Sj=C3=83=C2=B8gren_=3Casjo=40koldfront=2Edk=3E?= =?UTF-8?Q?=0A?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85602"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:t//BpW3NuZ02e4adiCslvVMpe4A= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 17 18:06:50 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPTVy-000MBi-9R for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Apr 2020 18:06:50 +0200 Original-Received: from localhost ([::1]:49206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPTVx-0003oH-CP for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Apr 2020 12:06:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58279) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPTVV-0003KO-8A for emacs-devel@gnu.org; Fri, 17 Apr 2020 12:06:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPTVU-0003Kb-7m for emacs-devel@gnu.org; Fri, 17 Apr 2020 12:06:21 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:49808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jPTVU-0003Jy-1t for emacs-devel@gnu.org; Fri, 17 Apr 2020 12:06:20 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jPTVS-000LdC-Ni for emacs-devel@gnu.org; Fri, 17 Apr 2020 18:06:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc X-Now-Playing: Isobel, Isobel =?utf-8?Q?=28Bj=C3=B6rk=29?= X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247177 Archived-At: James writes: >>>>>> "Edd" == Emacs development discussions writes: > > Edd> When I then end emacsclient with C-x # I'm back at the prompt. If I run > Edd> "exit", the prompt is hanging, where I would expect to be logged out of > Edd> machine1 and returned to machine2. Only after I press control-c do I get > Edd> the prompt back: > > lots of applications trigger that when forwarding x11 over openssh. Can you give some examples? I can't think of any program I have seen the same thing happen with. It is also uncommon to ssh to a machine, ask an already running program to open a window on the remote screen, close the window and log out, without quitting the entire program. But that's of course exactly what I want to do with Emacs. > perhaps some resource was stored in the x server and ssh holds the > forward open until it is released? Sounds likely, so I just need to figure out what it is and how to avoid it ;-) (Running emacsclient with nohup exhibits the problem, so it isn't as simple as stdin/stdout/stderr.) Best rgards, Adam -- "It is a sort of cheap and cheerful kind of Adam Sjøgren abstraction, but it works well in practise." asjo@koldfront.dk