From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: 5.0.8 regression when waiting for suspended jobs
Date: Fri, 31 Jul 2015 08:56:38 -0700 [thread overview]
Message-ID: <150731085638.ZM15733@torch.brasslantern.com> (raw)
In-Reply-To: <87si84k9uf.fsf@gmail.com>
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).
next prev parent reply other threads:[~2015-07-31 15:56 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 [this message]
2015-07-31 17:28 ` Christian Neukirchen
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=150731085638.ZM15733@torch.brasslantern.com \
--to=schaefer@brasslantern.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).