[67838] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Wed May 19 07:35:08 PDT 2010


Revision: 67838
          http://trac.macports.org/changeset/67838
Author:   jmr at macports.org
Date:     2010-05-19 07:35:03 -0700 (Wed, 19 May 2010)
Log Message:
-----------
hack around creation of too many sqlite temp files by portfile subinterpreters (#24857)

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2010-05-19 12:47:48 UTC (rev 67837)
+++ trunk/base/src/macports1.0/macports.tcl	2010-05-19 14:35:03 UTC (rev 67838)
@@ -1524,6 +1524,8 @@
             catch {cd $portpath}
             $workername eval eval_targets clean
         }
+        # XXX hack to avoid running out of fds due to sqlite temp files, ticket #24857
+        interp delete $workername
         macports::pop_log
         return 0
     } else {
@@ -2353,7 +2355,10 @@
     if {$refcnt == 0} {
         dlist_delete macports::open_mports $mport
         set workername [ditem_key $mport workername]
-        interp delete $workername
+        # the hack in _mportexec might have already deleted the worker
+        if {[interp exists $workername]} {
+            interp delete $workername
+        }
         ditem_delete $mport
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100519/6007bca3/attachment.html>


More information about the macports-changes mailing list