From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43499-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 1b33b9e6 for ; Wed, 19 Sep 2018 16:12:45 +0000 (UTC) Received: (qmail 6550 invoked by alias); 19 Sep 2018 16:12:32 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43499 Received: (qmail 19179 invoked by uid 1010); 19 Sep 2018 16:12:32 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-7.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.0.253.71):SA:0(-1.9/5.0):. Processed in 5.577419 secs); 19 Sep 2018 16:12:32 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [92.27.217.10] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=YrwhubQX c=1 sm=1 tr=0 a=8ZNYBr2XW9PeDhz77hzA2g==:117 a=8ZNYBr2XW9PeDhz77hzA2g==:17 a=kj9zAlcOel0A:10 a=x7bEGLp0ZPQA:10 a=oaspT1lWJpEbNnW_lpMA:9 a=CjuIK1q_8ugA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1537373542; bh=+QBPj8mcfYE75TVpaWI7R9GX8SR2rbIsw71+b3ZQ9vY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Dxmopjk9dxFfwSDnWbHArFex0HUCbaQj43XzI8CrchLoN1B9hLtooNc3SmhBKhs+W O83s7LymPXWk7GETQ2yL2LrcayQH/FDNTPZwmiPNGLH6NNRQRFSb5EYPJKoNAYfnO+ FTosO+z+TNFukBQvy5VS8q3ULj/LIKSkPMkdknFFcOe16mB0tty+5TtReB9KicrVcu UB5NBm2ak+ukJubfHh3C3NPoj9Xh3yPHf7ZMkIoys1baweCKxNp5XQjFnM+C0Pl5sm AmyFsbkahSR0wDalAqEnp6e5yz7HeXH+c57meWVMm3cN9CqvlOqgi/QWbwY+F4iv6J +bFm556SaeAsg== Date: Wed, 19 Sep 2018 17:12:19 +0100 From: Peter Stephenson To: TS Cc: Bart Schaefer , Zsh hackers list , vincent@vinc17.net Subject: Re: Zsh: [7] + 23074 suspended (tty output) Message-ID: <20180919171219.29596839@pws-HP.localdomain> In-Reply-To: <84cb1deb-f29c-1579-26ed-1e3750d2023d@xk2c.de> References: <22d05309-5f67-4310-d035-b726ba2d617e@xk2c.de> <1e4a8fb7-1fdd-5505-1627-079c10a74321@xk2c.de> <20180916084020.GA19815@zira.vinc17.org> <20180918011645.GA16046@zira.vinc17.org> <84cb1deb-f29c-1579-26ed-1e3750d2023d@xk2c.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJYeDDQTNDeN7M/otVf8ocwFJ/dd0/opXuiTckBYxL71bEsYt5+ccsgJ7PAA61RS/yAL75XK+EmVXisMsqhuo7VP4NdS/Y1bWB+hKtwoE59rcyBuUAS+ RiYP/vBMx1e33kdPbDn9NviO6nnT8NYP939KsX/jt/KOYFu7k4EDMp1xL6hNykDt4gxGv7X8bQfjHW6aQP4SPLRyKWfXornDxMWjRYXH1g83rLmTVm+JfY0B CEA4mRb+rp+itrzHooHEuKwHCCqI5IF/3byqV6ZA3As= On Wed, 19 Sep 2018 05:38:11 +0200 TS wrote: > when emacs is wrapped inside function, > then emacs is dead when: > > ^Z > bg > > Does not happen when emacs called w/o function. > See minimal .zshrc attached. > > % su -l heinb > Password: > tosh% emacs > > zsh: suspended emacs > tosh% bg > [1] + continued emacs > tosh% > [1] + suspended (tty output) emacs I'm not quite sure what you're doing here, but it seems to involve emacs being suspended due to terminal output when it goes into the *background*, which is entirely sensible as it's not even supposed to be attached to the terminal then. Quite when it attempts to write to the terminal during this period is not up to the shell. I'm not sure what effect the function is having but I don't see how it can be affecting writes from emacs. My best guess would be it's adding some kind of delay which is affecting how Emacs starts, but the actual interactions going on are obscure. I'm not actually seeing this behaviour myself anyway, but it sounds like a race so that's probably not surprising. This doesn't appear to be the problem Vincent was reporting, which I can't get to happen with that minimal eclient(). pws