summaryrefslogtreecommitdiff
path: root/project/VerifyClassLoad.scala
diff options
context:
space:
mode:
authorDaniel C. Sobral <dcsobral@gmail.com>2012-02-14 16:44:42 -0200
committerDaniel C. Sobral <dcsobral@gmail.com>2012-02-15 20:17:10 -0200
commit18559c4dc530b7d930295cfd9dd0704a2b370b4e (patch)
treef66e36b840fcbad62b8671e7831898e9ee2d056f /project/VerifyClassLoad.scala
parent2a727a092cbfbf49d32691d2ca56d33addc3b429 (diff)
downloadscala-18559c4dc530b7d930295cfd9dd0704a2b370b4e.tar.gz
scala-18559c4dc530b7d930295cfd9dd0704a2b370b4e.tar.bz2
scala-18559c4dc530b7d930295cfd9dd0704a2b370b4e.zip
Close file descriptor leak in sys.process.
This closes most file descriptor leaks in sys.process through the simple expedient of making sure every InputStream being read by BasicIO is closed once there's nothing more to read. A single file descriptor leak would remain for the OutputStream (that is, that process stdin) of each Process, which is closed after the InputStream being read to feed it is closed. Special care is taken not to close the calling process stdin. Fix an additional non-reported by where sending data to a process that had already terminated would result in an exception being thrown. File descriptors can still leak in some conditions that must be handled by user code. Documentation to that effect will follow. Closes SI-5439.
Diffstat (limited to 'project/VerifyClassLoad.scala')
0 files changed, 0 insertions, 0 deletions