From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43497-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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,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 9f0299fa for ; Wed, 19 Sep 2018 14:23:28 +0000 (UTC) Received: (qmail 13733 invoked by alias); 19 Sep 2018 14:23:11 -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: 43497 Received: (qmail 18231 invoked by uid 1010); 19 Sep 2018 14:23:11 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm1-f48.google.com 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(209.85.128.48):SA:0(-1.9/5.0):. Processed in 3.0839 secs); 19 Sep 2018 14:23:11 -0000 X-Envelope-From: tamelingdaniel@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=kxQqUy9knmIQo584ZiaTfjIcxW3WCBbtKnZF1Mvs77g=; b=iRkmwKukWSIeHDyPLbFjPLxUIXF4pyxXWcO84sTOXd+ulBbt/SDOGxHySrdg/CdSDr ZdDQYnsTNLaMJzsTVg3a9uo5dnkJdXn9rXQDJN5+UN6+GhL6q59UYqRf9CyQSbKpc0V6 gg3BwXj0v4Fm1tP/Rz0AAuUek3BderqKT3duLBsrVK/TJZ6iPGiupxR8NAD5ZAxyy10P R1jcPODaEg5GEu8rvtq17ok8HF59AF8qB5TtPuUhCO9nhdaIQpTztSnuALayrBhuhmFh y20OdODxrlsYgoBZp1T8Dpl0gWNRGI7tJ4Z80iGoxyqJ+0Y79+OLzq7vjygV0cDtlofb 9cQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=kxQqUy9knmIQo584ZiaTfjIcxW3WCBbtKnZF1Mvs77g=; b=tJYV9iYO6icY+cRhT99Cp9pAkRkIHtew584PnU4X1Jki9GTYevTzRihkTxYAdr1Nu9 D3rBcly4oAggbrX49Nid5dVV2qrXbn/Q+EsbU3L/iEiL2wKVubBfxbhGB+++uh3/52xI 6yZ0aYRLwhT6W3WE09viLI2CNZ1AovZDgNQR0qiujOkySOWYkiKGsSY464S6sEPz9okH jk0Ue/InxuYOaRfQOAlxIdz4X3MhCVmIoqanRzqmXtEzNH12VwOgHUpAoTJm4c4ebKY9 7X0KYJ2plNbKZ2XgDBfD1H8gL8FcIPXdz2lrf8zeGfBLYPCekRDoaRs6GdBbNL29xhHw TRUQ== X-Gm-Message-State: APzg51AYMY93BxC/v5cl7tJFkCkTGZ4uSPPb9j0z3DyLcv+d819Or+Bp sBghsBhGG+6Q4vEk2etaJqYtayJ0KIA= X-Google-Smtp-Source: ANB0VdZidqzrb+7By0AgOAxNs7sX8ZkHH28nA1vw9TkE+i4ATMTKMAEiGqxpbXZzyjdcPma42MQw0A== X-Received: by 2002:a1c:98cc:: with SMTP id a195-v6mr21759628wme.64.1537366983150; Wed, 19 Sep 2018 07:23:03 -0700 (PDT) Date: Wed, 19 Sep 2018 16:23:01 +0200 From: Daniel Tameling To: zsh-workers@zsh.org Subject: Re: Zsh: [7] + 23074 suspended (tty output) Message-ID: <20180919142301.7dgq6s5cwvnwjjlq@Daniels-MacBook-Air.local> Mail-Followup-To: zsh-workers@zsh.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <84cb1deb-f29c-1579-26ed-1e3750d2023d@xk2c.de> es On Wed, Sep 19, 2018 at 05:38:11AM +0200, TS wrote: > Hello Peter, > > 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 > tosh% jobs -l > [1] + 20708 suspended (tty output) emacs > tosh% fg %1 > [1] + continued emacs > tosh% eclient > zsh: suspended eclient > tosh% jobs -l > [1] + 20718 suspended (signal) eclient > tosh% bg > [1] + continued eclient > tosh% jobs -l > [1] - 20718 running eclient > tosh% fg %1 > [1] - running eclient > <<<#### here terminal is broken > > > setopt NO_globalrcs > eclient () { > =emacs "$@" > } > > This is not a new phenomenon. I can reproduce it with zsh 5.3. ps shows one difference between the function and the normal emacs case: there is another zsh instance: function case after issuing bg: $ ps -o pid,ppid,state,command 80367 80366 Ss /bin/zsh 80900 80367 T+ /opt/local/bin/emacs 80902 80367 T /bin/zsh normal case after issuing bg: $ ps -o pid,ppid,state,command 81266 81265 Ss /bin/zsh 81297 81266 T /opt/local/bin/emacs After fg %1, I can revive the function case by sending SIGCONT directly to the emacs process. -- Best, Daniel