diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-05 15:57:13 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-05 15:57:13 +0000 |
commit | 3dbf7319f6bfc98d7cfc1318538554278e42648a (patch) | |
tree | ade62852d2118479bf46fcdfc3db7466a4d05e58 /libjava/java/lang/PosixProcess.java | |
parent | bce94ab50a172995b7fe80591b207cf1cf33a8e3 (diff) | |
download | gcc-3dbf7319f6bfc98d7cfc1318538554278e42648a.tar.gz |
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl (emit_package_rule): Don't omit
VMProcess.java.
* Makefile.am (nat_source_files): Added natVMProcess.cc.
(inner_nat_headers): Added ImmediateEOFInputStream.h.
* gcj/javaprims.h: Regenerated.
* java/lang/System.java (EnvironmentMap): Now package-private.
(EnvironmentMap(Map)): New constructor.
(EnvironmentMap.put): New method.
* java/lang/natWin32Process.cc (startProcess): Update.
* java/lang/Win32Process.java (Win32Process): Added 'redirect'
argument.
(startProcess): Likewise.
* java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
argument.
* java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
* java/lang/PosixProcess.java (redirect): New field.
(PosixProcess): Added 'redirect' argument.
* java/lang/natRuntime.cc (execInternal): Added 'redirect'
argument to Process creation.
* java/lang/natVMProcess.cc: New file.
* java/lang/ProcessBuilder.java: Removed.
* java/lang/VMProcess.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122553 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/lang/PosixProcess.java')
-rw-r--r-- | libjava/java/lang/PosixProcess.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libjava/java/lang/PosixProcess.java b/libjava/java/lang/PosixProcess.java index 517e6f33f92..6b1496426dd 100644 --- a/libjava/java/lang/PosixProcess.java +++ b/libjava/java/lang/PosixProcess.java @@ -1,5 +1,5 @@ // PosixProcess.java - Subclass of Process for POSIX systems. -/* Copyright (C) 1998, 1999, 2004, 2006 Free Software Foundation +/* Copyright (C) 1998, 1999, 2004, 2006, 2007 Free Software Foundation This file is part of libgcj. @@ -354,8 +354,8 @@ final class PosixProcess extends Process */ private native void nativeSpawn(); - PosixProcess(String[] progarray, String[] envp, File dir) - throws IOException + PosixProcess(String[] progarray, String[] envp, File dir, boolean redirect) + throws IOException { // Check to ensure there is something to run, and avoid // dereferencing null pointers in native code. @@ -365,6 +365,7 @@ final class PosixProcess extends Process this.progarray = progarray; this.envp = envp; this.dir = dir; + this.redirect = redirect; // Start a ProcessManager if there is not one already running. synchronized (queueLock) @@ -419,6 +420,7 @@ final class PosixProcess extends Process private String[] progarray; private String[] envp; private File dir; + private boolean redirect; /** Set by the ProcessManager on problems starting. */ private Throwable exception; |