#5053: [with patch, needs review] If the hostname of the computer has a "-" in
it,
then no tempfiles will ever be deleted from $DOT_SAGE/temp!
---------------------+------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: blocker | Milestone: sage-3.3
Component: misc | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Changes (by SimonKing):
* summary: If the hostname of the computer has a "-" in it, then no
tempfiles will ever be deleted from
$DOT_SAGE/temp! => [with patch, needs review]
If the hostname of the computer has a "-" in
it, then no tempfiles will ever be deleted from
$DOT_SAGE/temp!
Comment:
Apparently, the pid of any sub process is written in a temporary file, in
a folder whose name is derived from the hostname.
And apparently, when writing these files, any '-' in the hostname will be
replaced by '_'. But this replacement is ignored in the `sage-cleaner`
script.
So, the obvious solution is to replace '-' by '_' in the `sage-cleaner`.
This is what my patch does.
I tested the following:
* change the hostname into 'test-test_test'
* before applying the patch, folders 'test_test_test' (sic!) are created
in SAGE_TMP. But the `sage-cleaner` does not clean them
* after applying the patch, the same folders are created, but this time
they are removed after leaving sage.
* don't forget to change back to your original hostname ;-)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5053#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---