From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22653 invoked by alias); 31 Jul 2015 17:28:31 -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: 35966 Received: (qmail 21143 invoked from network); 31 Jul 2015 17:28:28 -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=-1.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.0 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Christian Neukirchen Subject: Re: 5.0.8 regression when waiting for suspended jobs Date: Fri, 31 Jul 2015 19:28:16 +0200 Message-ID: <874mkkjky7.fsf@gmail.com> References: <87wpxhk970.fsf@gmail.com> <150730123904.ZM11774@torch.brasslantern.com> <87si84k9uf.fsf@gmail.com> <150731085638.ZM15733@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: host53-2.natpool.mwn.de In-Reply-To: <150731085638.ZM15733@torch.brasslantern.com> (Bart Schaefer's message of "Fri, 31 Jul 2015 08:56:38 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Bart Schaefer writes: > 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 TBH I don't know the best behavior here, but it's not endlessly looping spewing messages. :) > bash-4.2.25 > - "wait $!" returns immediately > - "wait %1" returns immediately > - "wait" returns immediately > > ksh93 (2011) > - "wait $!" blocks > - "wait %1" blocks > - "wait" blocks I found it surprising that pid and jobid behave differently, but if that's for historical reasons, I'm fine with that. -- Christian Neukirchen http://chneukirchen.org