From: "Igor Siemienowicz" To: Subject: Re: signal() and alarm() - Bug? Date: Wed, 12 Mar 1997 08:57:19 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <23120970302297@onaustralia.com.au> From: Caspar Derksen > I have the following problem: I want to perform some possibly expensive > computation that I want to abort if no result is found in time. I have > implemented this under Unix using alarm(). If some time limit is exceeded, > an alarm signal is raised that is handled by some procedure restoring > the previous state of the program. > > With DJGPP, alarm() or signal() does not seem to work, although the > FAQ suggests that signals and alarm should work. I am using v2 under > Win95-DOS. Would v2.01 solve my problem? Does anyone known another > solution? Wouldn't it be simpler and more reliable to poll the clock throughout the calculation. It's not like that's a hugely expensive operation computationally. Just a thought. -- Igor Siemienowicz igor AT onaustralia DOT com DOT au