Dorrie Hall (dorrie++at++iris.mit.edu)
Wed, 3 Feb 1999 10:27:53 -0500 (EST)
>i've just recently discovered that performer creates temp files in our
>/usr/tmp directory of the form "pfutil4609.pfdpool", however, it is
>not removing them when the application terminates. i think i've managed
>to trace the creation of the temp files to pfuInitInput, but pfuExitInput
>does not remove them. does anyone know 1) what the temp files are for,
>and 2) how to have performer remove them automatically? each one takes
>up 147k, so you can imagine how quickly we start filling up the disk.
>any info would be much appreciated!
jason bryan
ohio supercomputer center
Hi,
This is an ancient snippet of code and I can't remember
enough about it to offer any explanation. Maybe you can make
some sense of it. -Dorrie
#include <signal.h>
void mytrap(...);
pfInit();
/* if someone quits with ctrl c, clean up pf stuff in /usr/tmp */
/* needs to be after pfInit */
/* usually ctrl \ on sgi, by default dumps core*/
signal(SIGQUIT,mytrap);
/* usually ctrl c on sgi */
signal(SIGINT,mytrap);
void mytrap(...){
/* try not to dump pfUtil file in /usr/tmp */
/* by dropping through SimDone and doing pfExit*/
/* pfExit needs to be called by parent process */
/* can't seem to ctrl C gracefully before sim loop */
pfuExitUtil();
pfuExitInput();
pfExit();
exit(0);
return(0);
printf("CHECK for core\n");
exitFlag = 1;
}
In main loop check exit flag
if exitFlag
pfuFreeCPUs();
pfuExitUtil();
pfuExitInput();
pfExit();
exit(0);
return(0);
-- Dorrie Hall email:dorrie++at++mit.edu voice:(617)253-7841 FAX:(617)258-9535 MIT, N42-140 77 Massachusetts Avenue Cambridge, MA 02139-4307
This archive was generated by hypermail 2.0b2 on Wed Feb 03 1999 - 07:27:33 PST