-
Bug
-
Resolution: Fixed
-
P3
-
1.1.3
-
1.2beta4
-
x86
-
windows_95
-
Not verified
Name: rlT66838 Date: 07/18/97
Under win32, have the JDK1.1.3 Runtime.exec() any subprocess,
then have subProcess.waitFor() executed in an attempt to wait for
the subprocess to finish. Perhaps it's only my but code I doubt
it. When I attempted this it either hung, or crashed windows 95.
private void ProcessInput()
{
Process subProcess;
Runtime thisRuntime = Runtime.getRuntime();
try
{
subProcess = thisRuntime.exec(CommandLine);
subProcessOutput = new BufferedReader( new InputStreamReader(subProc
ess.getInputStream()) );
subProcess.waitFor();
}
catch(InterruptedException thisException)
{
Daemon.SysFatalError(thisException, "ProcessInput() exec");
}
}
This isn't the entire source, but what I believe is relevant to the problem.
Please contact me if anyone would like to see the whole package.
======================================================================
- duplicates
-
JDK-4065790 subProcess.waitFor() never returns on win32.
- Closed