zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: On the subject of traps ... and notify ...
Date: Tue, 2 Oct 2001 15:53:07 +0000	[thread overview]
Message-ID: <1011002155307.ZM24747@candle.brasslantern.com> (raw)

I just noticed that if one installs a trap for the child-exited signal,
the nonotify option gets ignored.  That is:

schaefer[505] TRAPCLD() { zle -I && print DING }
schaefer[506] setopt nonotify
schaefer[507] sleep 10 &
[1] 24733
schaefer[508] echo this is a test
DING
schaefer[508] echo this is a test
[1]  + done       sleep 10
schaefer[508] echo this is a test

(type ^U and then)

schaefer[508] unfunction -m TRAP\*
schaefer[509] sleep 10 &
[1] 24735
schaefer[510] echo THE OTHER WAS A TEST
THE OTHER WAS A TEST
[1]  + done       sleep 10
schaefer[511] 

(having sat waiting for at least 30 seconds after typing "A TEST" just to
make sure the sleep had finished before I pressed enter).

On a somewhat related note, it appears that one has to know whether to
use TRAPCLD or TRAPCHLD depending on which signal "kill -l" reports as
the one for your operating system.  I would have thought that zsh would
equate them.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


                 reply	other threads:[~2001-10-02 15:53 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=1011002155307.ZM24747@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).