From: malte@techfak.uni-bielefeld.de
To: rc@hawkwind.utcs.toronto.edu
Subject: rc and signal handlers
Date: Thu, 5 Nov 1992 15:45:32 -0500 [thread overview]
Message-ID: <9211052045.AA01130@dahlie.techfak.uni-bielefeld.de> (raw)
I just came across a situation were I want to temporarily change the
sematics of a signal handler, say during the execution of a function.
fn doit {
sighdlr = `` $nl { whatis -s | fgrep 'fn sigint' }
...
eval $sighdlr
}
doesn't work, of course. What is needed is a kind of local signal handler,
or a way to put a signal handler definition into a variable like
fn doit {
whatis fn sigint var
...
eval $var
}
I suggest local signal handlers and local functions.
Also, the man-page is not too clear about signals:
"Only signals that are being ignored are passed on to programs run by rc"
The should read "signals that are being caught", I guess. Signal handler
definitions look like functions but are *not*; it should be stated that one
cannot "return" from a signal handler.
Malte
next reply other threads:[~1992-11-05 20:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-11-05 20:45 malte [this message]
1992-11-05 23:16 ` Chris Siebenmann
1992-11-05 22:00 Byron Rakitzis
[not found] <cks@hawkwind.utcs.toronto.edu>
1992-11-06 12:03 ` malte
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=9211052045.AA01130@dahlie.techfak.uni-bielefeld.de \
--to=malte@techfak.uni-bielefeld.de \
--cc=rc@hawkwind.utcs.toronto.edu \
/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.
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).