From: Claudio Castellini Newsgroups: comp.os.msdos.djgpp Subject: setrlimit & setrusage Date: Fri, 02 Apr 1999 16:52:24 +0200 Organization: Universita' di Genova Lines: 27 Message-ID: <3704D9A8.C2D70354@mrg.dist.unige.it> NNTP-Posting-Host: tarski.mrg.dist.unige.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.34 i686) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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? (b) if not, d'ya know any other way to stop a program still running after n seconds without using setrlimit() ? (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)? Thank you in advance. -- ---------------------+------------------------------- Claudio Castellini, M.Sc. | mailto:drwho AT dist DOT unige DOT it Biomedical Engineerings | http://www.mrg.dist.unige.it/~drwho ---------------------+------------------------------- c/o MRG - University of Genoa viale F. Causa, 15 - 16145 Genoa (Italy) ph. +39 - 0103532811 / fax +39 - 0103532948 ----------------------------------------------------- ...sei come la neve, che tocchi e sciolta e' gia'.