From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-relay-1.mv.us.adobe.com ([130.248.1.1]) by hawkwind.utcs.toronto.edu with SMTP id <2782>; Fri, 6 Nov 1992 08:29:14 -0500 Received: by mail-relay-1.mv.us.adobe.com; id AA03655; Fri, 6 Nov 92 05:29:08 -0800 Received: by utopia.mv.us.adobe.com (NeXT-1.0 (From Sendmail 5.52)/NX3.0S) id AA07295; Fri, 6 Nov 92 05:29:21 PST Date: Fri, 6 Nov 1992 08:29:21 -0500 From: Paul Haahr Message-Id: <9211061329.AA07295@utopia.mv.us.adobe.com> To: malte@techfak.uni-bielefeld.de Subject: Re: aha Cc: rc@hawkwind.utcs.toronto.edu [ 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) { ... }