Mail Archives: djgpp/1999/04/02/16:32:59
Claudio Castellini wrote:
>
> Hello everyone.
>
> I need desperately to put a timeout on my program, compiled under DJGPP. I
> looked at the online documentation and found that setrlimit is, by now,
> implemented as a dummy.
>
> (a) does the DJGPP staff plan to fully implement it in the near future?
No, AFAIK. I can't see any use for it on a single-user, unsecured
system.
You are welcome to work on this if you want, however.
> (b) if not, d'ya know any other way to stop a program still running after n
> seconds without using setrlimit() ?
Use `alarm', or if you need more precision, `setitimer'.
> (c) in the 2.02 "what's new" section, it is stated that getrusage and setrusage
> have been implemented. What is "setrusage" (couldn't find it in any gcc
> documentation)?
That would appear to be a bug in the manual. `setrusage' doesn't exist.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -