#6128: [with patch; needs review] Bug - sage-cleaner failed due to NULLs in
spawned-processes files written by cleaner.py
--------------------+-------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.1
Component: misc | Keywords:
--------------------+-------------------------------------------------------
Comment(by adavid):
Patch ammended: typo.
Tested OK on i686 Debian 5.0
{{{
# HG changeset patch
# User Anthony David <[email protected]>
# Date 1243893998 -36000
# Node ID 82f9583a45eee9dae4ec4c8cde865e96c392396c
# Parent fd89fee664d87b20ab77bb6e248d9a71c17affe4
Improve write assurance of spawned_processes files by cleaner
diff -r fd89fee664d8 -r 82f9583a45ee sage/interfaces/cleaner.py
--- a/sage/interfaces/cleaner.py Fri May 29 21:41:28 2009 -0700
+++ b/sage/interfaces/cleaner.py Tue Jun 02 08:06:38 2009 +1000
@@ -28,6 +28,8 @@
return
o = open(F,'w')
o.write('%s %s\n'%(pid, cmd))
+ o.fflush()
+ os.fsync(o.fileno())
o.close()
start_cleaner_if_not_running()
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6128#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---