rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Paul Haahr <haahr@mv.us.adobe.com>
To: malte@techfak.uni-bielefeld.de
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: aha
Date: Fri, 6 Nov 1992 08:29:21 -0500	[thread overview]
Message-ID: <9211061329.AA07295@utopia.mv.us.adobe.com> (raw)

[ Byron's suggestion to save the status before and restore it after
doing signal processing, which i agree with 100%.]

> This make it impossible (I think) to program something as "do this as long
> as it works but not longer than 10 seconds".

not at all.  instead of writing
        fn false { return 1 }
        fn sigint { false }
        while( ~ $status(0) 0 ) { ... }
just do
	interrupted = false
	fn sigint { interrupted = true }
	while (!~ $interrupted true) { ... }


             reply	other threads:[~1992-11-06 13:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-11-06 13:29 Paul Haahr [this message]
     [not found] <haahr@mv.us.adobe.com>
1992-11-06 13:36 ` aha malte
  -- strict thread matches above, loose matches on Subject: below --
1992-11-06 12:14 aha malte
1992-11-06  2:25 aha Byron Rakitzis
1992-11-06  1:22 aha Tom Culliton x2278
1992-11-06  0:28 aha Byron Rakitzis

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=9211061329.AA07295@utopia.mv.us.adobe.com \
    --to=haahr@mv.us.adobe.com \
    --cc=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).