gback at cs.utah.edu
Wed Aug 19 12:19:58 PDT 1998
> Ahh.. I see. Well then, here are two short bug fixes for the
> Runtime.exec stuff. I'm sorry they weren't generated using patch, since
thanks for the fixes to Runtime.java and UNIXProcess.c.
> I haven't quite figured out how to use it yet (and they are only about 4
1. cp Runtime.java Runtime.java.bak
2. make changes to Runtime.java
3. type "diff -u Runtime.java.bak Runtime.java"
Alternatively, if you backup complete trees, you do a "diff -ru oldtree newtree"
> lines). There is still one bug left, which is that the file descriptors
> opened to talk to the Process are never closed. I'll send out a patch
> as soon as I figure out where the file descriptors are actually supposed
> to be closed.
I think they're supposed to be closed either if you close them explicitly
or, absent that, within the finalizer of the stream. That is, you won't
see them getting closed unless a gc happens; which is either triggered
by a memory allocation or when you call System.gc().
More information about the kaffe