From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7305 invoked by alias); 31 Jul 2015 15:56:45 -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: X-Seq: 35965 Received: (qmail 20030 invoked from network); 31 Jul 2015 15:56:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=ltleZkcxDNuNFhKhs5TwYaYsH1XJ/sZNpoQxZ4Wxbc4=; b=YfCRhFDW2/M+bqqs+4whImglntJpWZVqVjypE5kWjC3A0lOucvFXZ5UZOxvxRDE+oF +cn1WbSWYNQDYdnYbKcRXgLDzzFA+OfbO8REFemFVpefTM87UdAWWwi5tsFD3Dj5Fy2z +7BAWIyn4gJCAGwOaXpOiuFYj4xuIA7f+O0jSFgIl24KD+ZRsAeDfsUx9ARHOPOeHtq0 ZoKZj0N1phtCZP3wTrzOKgkZzNauYX7sx7zeSzlUhHDV0i1Dori+HIUo0bvAT01rO76x JjYVqC/zAozRIgFFQ/778CabaOiLe0E9P5U9nTfEyAtyBPsQNDkowwC1OOzdAu4adDqm 4DzA== X-Gm-Message-State: ALoCoQnHaT22tm0e0rRKAW+/hr5zkJnl07JIuKQ0mFrEl7Vb2d++BZqL2HEoh7xmBKCAfbtp0dGB X-Received: by 10.182.252.66 with SMTP id zq2mr3973044obc.84.1438358200972; Fri, 31 Jul 2015 08:56:40 -0700 (PDT) From: Bart Schaefer Message-Id: <150731085638.ZM15733@torch.brasslantern.com> Date: Fri, 31 Jul 2015 08:56:38 -0700 In-Reply-To: <87si84k9uf.fsf@gmail.com> Comments: In reply to Christian Neukirchen "Re: 5.0.8 regression when waiting for suspended jobs" (Jul 31, 10:30am) References: <87wpxhk970.fsf@gmail.com> <150730123904.ZM11774@torch.brasslantern.com> <87si84k9uf.fsf@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: 5.0.8 regression when waiting for suspended jobs MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 31, 10:30am, Christian Neukirchen wrote: } } > Also if you wait by job number ("wait %1") instead, "wait" returns right } > away rather than blocking on the stopped job (in both .7 and .8). } } Can confirm. Why would it be different when giving the PID... Comparison: zsh-5.0.7 - "wait $!" blocks (looping on repeated wait3() nonzero) - "wait %1" returns immediately - "wait" returns immediately zsh-5.0.8 - "wait $!" loops but also printing status every time - "wait %1" returns immediately - "wait" returns immediately bash-4.2.25 - "wait $!" returns immediately - "wait %1" returns immediately - "wait" returns immediately ksh93 (2011) - "wait $!" blocks - "wait %1" blocks - "wait" blocks There's an additional interesting thing about ksh. If you interrupt either of "wait $!" or "wait %1", ksh sends the signal along to the job that was waited for. Neither bash nor zsh do so (bash can't as wait has already returned).