From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43558-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.0 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,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 e3c41a25 for ; Wed, 26 Sep 2018 05:48:14 +0000 (UTC) Received: (qmail 26933 invoked by alias); 26 Sep 2018 05:48:03 -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: 43558 Received: (qmail 18996 invoked by uid 1010); 26 Sep 2018 05:48:02 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf1-f53.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.167.53):SA:0(-1.9/5.0):. Processed in 2.326579 secs); 26 Sep 2018 05:48:02 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WuryMURcCmBelu23dCtPvgkc5zL04yYwTrD2OPjwNZA=; b=MtTBMfm3ozFDB32VUznmVOCQeDP7dGEVZySPP33l9ZXn7MHG0aneQ/g5uTip6K1a5Z FrumM473dcEjp0h3rsmJbrOeRJjkxgs6jIYw6MeqACWIlqSm8zV/AcXagiMgcLKG/vcA aBDXIrSrf0UWXrZd9yqTcL89F0YVGfQfthg12TKlzFvuc7UYkD6RHjML2w9PUoXuAEkf tGZ2HierezdecAxx5+0Uyp7XlLtiLTI4Q/lQF7yrymllxtdOiQk1D5OiI1fx7siipDKc Mqdz/34aLjbp0gp+slj08LbemULFspkRRb1PNBv+ule3K+CFluBCvh1tEVmWXNyPR3RV 5xug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WuryMURcCmBelu23dCtPvgkc5zL04yYwTrD2OPjwNZA=; b=WyB3ifB+FBrlNID8ocf6+2QsSH8ZRI7CTddr/D6SAfRSM3rU7v4VhHGJP3BWwv8+cl 3U/a7Lm4Gyxzer76CKjKWdGa3QAX6P3rcLisYiK4wOwSTl1wGte0Dg/UvSddmwh7ujYZ cLYqwPCTtmDJuEgusBsycbwBH9k1za9CPmgthxVAGl9O8EG5di2oHpOYXpOcP3NKi4oS dIdnQbi3/AYvPCllln7udUnwPHOfhVYOZNgSf818z/idd0Auj7ACv4EecK3XfKq8PoTz kitnFMBd4tLYXDdbG4ZyqYj9OHRTasRIvCOGhPuwVg8US1RE1mWU4RjU1wMiDbcRfAUB whvQ== X-Gm-Message-State: ABuFfoiFREpO+WoL5sqOgnwm33vLVhII5nzTIl5NT1XiAci93ku3TTvb adAL12yPFGwYwyTGAsTg7RhEYUKCfMThT0JbtalO2CARlpEzZg== X-Google-Smtp-Source: ACcGV60lGucayl/AclFmpb3gV5orPaw8sj6e9cNhw2g+uZ32Uzy3qU0CPi4xEvJHdVVsUv50esSpSnYErJd5ewaqLLw= X-Received: by 2002:a19:4948:: with SMTP id l8-v6mr891597lfj.81.1537940876201; Tue, 25 Sep 2018 22:47:56 -0700 (PDT) MIME-Version: 1.0 References: <20180920123005.GA20647@zira.vinc17.org> <20180921175740.6ab97a81@pws-HP.localdomain> <20180924205106.03ee3da6@pws-HP.localdomain> <20180925103759eucas1p2a15709c7a9d8df72d8c390521a6999ab~XnlOUhOUG3250532505eucas1p2u@eucas1p2.samsung.com> In-Reply-To: <20180925103759eucas1p2a15709c7a9d8df72d8c390521a6999ab~XnlOUhOUG3250532505eucas1p2u@eucas1p2.samsung.com> From: Bart Schaefer Date: Tue, 25 Sep 2018 22:47:44 -0700 Message-ID: Subject: Re: long-standing tty related issue: wrapped Emacs not suspended To: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Tue, Sep 25, 2018 at 3:38 AM Peter Stephenson wrote: > > As before, the only way of teasing out problems will be to try this out, > so I'll commit it. Minor nit -- if a normal background job gets stopped by a signal, the shell reports it: % e & [1] 2936 % [1] + suspended (tty output) e But if you ^Z a function and then background it, the parent still believes it to be running even though it has instantly stopped: % e zsh: suspended e % bg [1] + continued e % jobs [1] + running e % ps a PID TT STAT TIME COMMAND 2813 s003 S 0:00.09 Src/zsh -f 2906 s003 T 0:00.21 emacs 2908 s003 T 0:00.00 Src/zsh -f 2917 s003 R+ 0:00.00 ps a The right thing happens if you "fg" it again (it gets sent a SIGCONT, and the parent waits) so this isn't critical, but it's potentially confusing.