Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
TRAPCHLD (was Re: segfault in completion for configure)
- X-seq: zsh-workers 38144
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: TRAPCHLD (was Re: segfault in completion for configure)
- Date: Sun, 13 Mar 2016 08:20:52 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to; bh=HYEGzJej13Ninfaad1PVdQmgD8/W01ohqBD8rqvxMHo=; b=oWODNceCIb1VjIgBsUnlOIG8SABrpZFLGtg019x5/fGedHhCbKSwYYk9e/8Rkwby2S yJ2FuPnLywQyNpAFbXRPtLXxAoB0qI3eebWtXGgrFlYFfwFWAL8/7XX1hYt6fwQkSlvT wa2ktbhzCmI1EtKsSzMY+9ET8yh0FQlYm0OvUxYJMfxNsmc9wjG4+CYp/3XTm8ibdlYv +o0XsIMSHrS6xdASRNL1uzJD/uhjiCW4yKgMtmIHYeNwZZWD1vOWsiKP+yp8Ww2T3CbI GbFbItQt4ETRLL3dxxuHaZshUvSN6nFPLzBfuAL3XJgRD0PGybzvrqLvh8zppViSJADW Q4AA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
> > } 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author