This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

process.waitFor()


The following sequence works fine on linux, but not on windows (3.3, 3.4 alike).

It hangs at the point where it waits for the process forked (process.waitFor()) to
complete.

I've used Runtime.exec() on windows, however, without feeding anything to stdin --
just reading stdout. Then it works.

Is this a known problem?


		Process process=Runtime.getRuntime().exec(execArgs);

		threadIn.start();
		threadOut.start();
		threadErr.start();

		exitCode=process.waitFor();
	
		threadIn.join(0);
		threadOut.join(0);
		threadErr.join(0);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]