This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Even after debug session is over StreamTerm.OutputMonitor thread is alive and the more sessions you start the more threads you'll have. It looks like they never finish.
http://lessing.sfbay.sun.com/hg/toolshg/rev/24b73cdc16d1 We need to close the ptys for CmdIo and Pio to make the read() in StreamTerm.OutputMonitor to pop out with a -1/exception. We do this in ExecutoreUnix.cleanup(). We're lucky that UnixPty.close() which only closes the slave_fd seems to do the trick. I.e. no need to close the master_fd allocated by getTty(). See Evaluation of CR 4892157 for info regarding fd count checks. StreamTerm.OutputMonitor's are not used in the remote case. Need to make sure that when we switch to nativeexecution that this problem doesn't come back to haunt us. Incidentally: Executor.startIO(Reader, Writer) was dead code so got rid of it and members fromTerm and toTerm.