diff options
author | Mohan Embar <gnustuff@thisiscool.com> | 2003-11-07 03:16:49 +0000 |
---|---|---|
committer | Mohan Embar <membar@gcc.gnu.org> | 2003-11-07 03:16:49 +0000 |
commit | cafa50327c89ec582f3f045f52a8c8b212fc8f38 (patch) | |
tree | a0b583d9b121a54cedc52e2514152a8bf66f5244 /libjava/java/lang/Win32Process.java | |
parent | bbf76ec06cbb846464bbb3701280167d0319b47b (diff) | |
download | gcc-cafa50327c89ec582f3f045f52a8c8b212fc8f38.zip gcc-cafa50327c89ec582f3f045f52a8c8b212fc8f38.tar.gz gcc-cafa50327c89ec582f3f045f52a8c8b212fc8f38.tar.bz2 |
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
Diffstat (limited to 'libjava/java/lang/Win32Process.java')
-rw-r--r-- | libjava/java/lang/Win32Process.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libjava/java/lang/Win32Process.java b/libjava/java/lang/Win32Process.java index 7a58727..b0ef487 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 (); } |