Skip to Main Content

Java SE (Java Platform, Standard Edition)

Start Process and inherited handles on Windows

802418Mar 25 2011
My application starts a launch-and-forget process using ProcessBuilder.start. That process keeps a handle to a file of mine that was opened (and I guess not closed) by a dll I called but didn't write. That's messing me up when I try to replace or re-write that file. (The sub-process has no interest in that file.)

The Windows CreateProcess function has a "inherit handles" boolean. Is there someway I can get Java to set that boolean to false?
Post Details
Locked on Apr 22 2011
Added on Mar 25 2011
0 comments
151 views