This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: autoconf / autoheader tmp files


Conrad Scott wrote:

The wrapper scripts for autoconf and autoheader use temporary files
that they (are supposed to) remove on exit (using trap 0).  But I tend
to find *lots* of these directories in /tmp (e.g. /tmp/acXXXXX and
/tmp/ahXXXXX).  Just running autoconf or autoheader with no arguments
creates a nice example.

But I can't see what the problem is with the scripts: they set a trap
to clean up and it looks fine to me.

Any suggestions?

Yeah, I've noticed that too. Perhaps I outsmarted myself: the wrapper script never actually "exits" -- it *execs* the real autoconf/make/whatever.

So perhaps the trap doesn't get triggered when you exec.

Maybe I should rm the tmp files/dirs explicitly. before exec'ing the real autotool...

--Chuck




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]