From cafa50327c89ec582f3f045f52a8c8b212fc8f38 Mon Sep 17 00:00:00 2001 From: Mohan Embar Date: Fri, 7 Nov 2003 03:16:49 +0000 Subject: re PR libgcj/12231 ([win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window) PR libgcj/12231 * java/lang/Win32Process.java (hasExited) Changed from public to private. (startProcess): Likewise. (cleanup): Likewise. * java/lang/natWin32Process.cc (cleanup) Don't close input, output and error streams. (ChildProcessPipe): New helper class. (startProcess): Refactored to use ChildProcessPipe. Use CREATE_NO_WINDOW when launching child process. From-SVN: r73326 --- libjava/java/lang/Win32Process.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'libjava/java/lang/Win32Process.java') diff --git a/libjava/java/lang/Win32Process.java b/libjava/java/lang/Win32Process.java index 7a5872705b8..b0ef487c204 100644 --- a/libjava/java/lang/Win32Process.java +++ b/libjava/java/lang/Win32Process.java @@ -28,8 +28,6 @@ final class ConcreteProcess extends Process { public native void destroy (); - public native boolean hasExited (); - public int exitValue () { if (! hasExited ()) @@ -55,13 +53,6 @@ final class ConcreteProcess extends Process public native int waitFor () throws InterruptedException; - public native void startProcess (String[] progarray, - String[] envp, - File dir) - throws IOException; - - public native void cleanup (); - public ConcreteProcess (String[] progarray, String[] envp, File dir) @@ -89,4 +80,11 @@ final class ConcreteProcess extends Process // Exit code of the child if it has exited. private int exitCode; + + private native boolean hasExited (); + private native void startProcess (String[] progarray, + String[] envp, + File dir) + throws IOException; + private native void cleanup (); } -- cgit v1.2.3