From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Log out hanging after X-forwarded emacsclient [Was: Closing displays GTK+ bug] Date: Sat, 18 Apr 2020 11:45:19 +0200 Message-ID: References: <83zhbcg6s4.fsf@gnu.org> <87r1wng2ki.fsf@linaro.org> <83o8rrenn1.fsf@gnu.org> <87blnr6uck.fsf@tullinup.koldfront.dk> <87v9lyayh6.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="119878"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org, Adam =?utf-8?Q?Sj=C3=B8gren?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 18 11:46:15 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 1jPk3B-000V3L-7Q for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Apr 2020 11:46:13 +0200 Original-Received: from localhost ([::1]:56290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPk3A-0005W0-9w for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Apr 2020 05:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34628) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPk2N-00051U-OT for emacs-devel@gnu.org; Sat, 18 Apr 2020 05:45:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPk2M-0000Pc-Jl for emacs-devel@gnu.org; Sat, 18 Apr 2020 05:45:23 -0400 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:34576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPk2M-0000NJ-EA for emacs-devel@gnu.org; Sat, 18 Apr 2020 05:45:22 -0400 Original-Received: by mail-wr1-x42c.google.com with SMTP id j1so338009wrt.1 for ; Sat, 18 Apr 2020 02:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=LRFkTlF8H8bSNVGeFe9gcv5zJRoyCzsley19xNGwrVk=; b=sgU6j0Q9Ihi4yX2kXtHIGk/RfXnxEOP5OSFhMO6DZI6JmOQAGHICBf74xrgxqnnccr jdV84yriqXiq0g8wZRwBmR/ymUcBcFGXwLvwnb14W2l+wyZM6ZXwX3ZMOmaqNp1Ptfxm sGvpygGW+AE47pBgOJD7s5alJbzHHJHU1qJFoC2wgTPTCumB/dUpgCMjCiPBFTZEqULt cMNcQpY6UvAFp7alpTfovmZkiMb6BbW9MwULHDx1lpGS3Xz0wSEd7+HNwncFskqUT6Yp F24WSEHFRXn6XSVqk4btEg+eRddrEdz4GjUvWHwAYxtEeyAncj4RCa7WOmFU6x7EUOHu ILgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=LRFkTlF8H8bSNVGeFe9gcv5zJRoyCzsley19xNGwrVk=; b=Z9x6TVW+2+zUbaeZfaok8jvrGY6698eZaCUi4+vIQVz30JE7qm1AFR2KdDh9vKQh9T HLmmRaWMGcbRlhshnToUqWrLda6hWRLJEb3aUkvDIoJiJe+g8LHoKXp0aSwn7CsLZQtU V9Sv8Sy/nkGjeerg1CQc2b0R973KswVy9RiTkH5kPUrBcbJ6bV0VlXy+JwLsdcEMtaOR pGC01TJ7HkX6w3KikPJdhPY7VuAdNd3adeTPBb+hIrff3sShgiyc+F1QF+q/D5b1Eyjg sMrFP4sPxpulLogeMPe+E+8OroAMfZmtK96RDAIXeBQxkAjBPjA2xTXdGnTLAwyK31Fk Up7A== X-Gm-Message-State: AGi0PuYpzsBvIFXfaHJ1L7OgtLJxNBm2KAcb3fGCZPy5csKXjzZax0rC i35ruxTZUnjwLs1LSwBvILU= X-Google-Smtp-Source: APiQypJZH4p/tVCVO7rQMP/Pb7j9u7l4SyL6rcNFwYdat51sGVCFTZ+JnmF51lQsdIew/0+blj3CUw== X-Received: by 2002:a5d:65d2:: with SMTP id e18mr8473661wrw.104.1587203121051; Sat, 18 Apr 2020 02:45:21 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:384e:c682:f3e3:6663]) by smtp.gmail.com with ESMTPSA id 33sm1083162wrp.5.2020.04.18.02.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 02:45:20 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <87v9lyayh6.fsf@tullinup.koldfront.dk> ("Adam =?utf-8?B?U2o=?= =?utf-8?B?w4PCuGdyZW4=?= via \"Emacs development discussions."'s message of "Fri, 17 Apr 2020 18:06:13 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." 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:247217 Archived-At: >>>>> On Fri, 17 Apr 2020 18:06:13 +0200, "Adam Sj=C3=B8gren via \"Emacs de= velopment discussions." said: Adam> James writes: >>>>>>> "Edd" =3D=3D Emacs development discussions writes: >>=20 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 o= ut of Edd> machine1 and returned to machine2. Only after I press control-c do= I get Edd> the prompt back: >>=20 >> lots of applications trigger that when forwarding x11 over openssh. Adam> Can you give some examples? Adam> I can't think of any program I have seen the same thing happen wi= th. virt-manager triggers this for me. Even when I=CA=BCve exited virt-manager. Adam> It is also uncommon to ssh to a machine, ask an already running p= rogram Adam> to open a window on the remote screen, close the window and log o= ut, Adam> without quitting the entire program. It is? I do that all the time :-) Adam> 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? Adam> Sounds likely, so I just need to figure out what it is and how to= avoid Adam> it ;-) Adam> (Running emacsclient with nohup exhibits the problem, so it isn't= as Adam> simple as stdin/stdout/stderr.) Hmm. Does 'disown' help? Robert