sarrabenabbes / splitta

Automatically exported from code.google.com/p/splitta
0 stars 0 forks source link

IOError: [Errno 24] Too many open files: '/tmp/tmpiy5qcd' #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
OS-level file descriptions from tempfile.mkstemp are not closed. Hence, you hit 
the ulimit at around 1019 files.

The following patch will close the FDs:

418c412
<         testfd, test_file = tempfile.mkstemp()

---
>         unused, test_file = tempfile.mkstemp()
424c418
<         predfd, pred_file = tempfile.mkstemp()

---
>         unused, pred_file = tempfile.mkstemp()
439,441d432
<         ## need to close file handles 
(http://ubuntuforums.org/showthread.php?t=919340)
<         os.fdopen(testfd,'w').close()
<         os.fdopen(predfd,'w').close()

Original issue reported on code.google.com by tur...@gmail.com on 6 Aug 2010 at 7:20

GoogleCodeExporter commented 8 years ago

Original comment by dgill...@gmail.com on 13 May 2011 at 5:55