zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: TRAPCHLD (was Re: segfault in completion for configure)
Date: Sun, 13 Mar 2016 08:20:52 -0700	[thread overview]
Message-ID: <CAH+w=7ZLVXbHZcyfKnE5eYXpMkO8GYY5XPHkCdZWWnLbcsQw=A@mail.gmail.com> (raw)

> > } On 2016-03-11 15:00:56 -0800, Bart Schaefer wrote:
> > } > [...] if you have a TRAPCHLD function it's
> > } > possible that it's corrupting something.

TRAPCHLD is a rather blunt instrument for what Vincent wants to do
here (update the window title with job status).  There's no reason to
update the title bar in the middle of a completion upon the exit from
a command substitution, but there's no way to tell why the CHLD signal
was delivered or what the surrounding shell state may be.

Any thoughts on ways to refine this?  Perhaps a job status change hook
instead of relying on a signal trap?

Semi-related, I've noticed that the CHLD trap is not executed when a
foreground job exits.  Presumably that's because wait() is reaping the
process before the signal is generated.


                 reply	other threads:[~2016-03-13 18:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAH+w=7ZLVXbHZcyfKnE5eYXpMkO8GYY5XPHkCdZWWnLbcsQw=A@mail.gmail.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).