bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #33483] temporary directory


From: John Darrington
Subject: PSPP-BUG: [bug #33483] temporary directory
Date: Fri, 10 Jun 2011 13:32:42 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.16) Gecko/20110107 Iceweasel/3.5.16 (like Firefox/3.5.16)

Update of bug #33483 (project pspp):

                 Release:                    None => Before 0.8.0           

    _______________________________________________________

Follow-up Comment #6:

Now that you mention it, the temp directories are not getting removed on
debian either.

I think there are multiple causes.  The temp dir fails to be removed both in
the case where pspp exits normally and upon SIGINT.


Looking at the pspp source, I notice a couple of things:

* In src/libpspp/ext-array.c line 72 the call to fclose should 
  instead be a call to close_temp_file

* In src/libpspp/temp-file.c the function create_temp_file is
  missing a call to register_temp_file


I made these changes and found that the temp dir is then removed
upon SIGINT, but not on normal exit.

* Looking in the gnulib source lib/clean-temp.c I can see a line
  of the form at_fatal_signal (cleanup) but nothing to indicate
  that cleanup will be called on a normal exit (although the 
  comment in clean-temp.h says that it will



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33483>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]