From: Christian Neukirchen <chneukirchen@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: 5.0.8 regression when waiting for suspended jobs
Date: Fri, 31 Jul 2015 19:28:16 +0200 [thread overview]
Message-ID: <874mkkjky7.fsf@gmail.com> (raw)
In-Reply-To: <150731085638.ZM15733@torch.brasslantern.com> (Bart Schaefer's message of "Fri, 31 Jul 2015 08:56:38 -0700")
Bart Schaefer <schaefer@brasslantern.com> 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 <chneukirchen@gmail.com> http://chneukirchen.org
next prev parent reply other threads:[~2015-07-31 17:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 14:32 Christian Neukirchen
2015-07-30 19:39 ` Bart Schaefer
2015-07-31 8:30 ` Christian Neukirchen
2015-07-31 15:56 ` Bart Schaefer
2015-07-31 17:28 ` Christian Neukirchen [this message]
2015-07-31 17:41 ` Bart Schaefer
2015-08-11 23:56 ` Bart Schaefer
2015-08-12 9:43 ` Peter Stephenson
2015-08-12 14:58 ` Bart Schaefer
2015-08-12 16:09 ` Peter Stephenson
2015-08-12 17:31 ` Bart Schaefer
2015-08-15 1:56 ` Bart Schaefer
2015-08-16 17:37 ` Peter Stephenson
2015-08-16 21:49 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874mkkjky7.fsf@gmail.com \
--to=chneukirchen@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).