From 5870719c54a2bcb533d16a7778dabf4415f91f90 Mon Sep 17 00:00:00 2001 From: bothner Date: Mon, 1 Mar 2004 21:33:28 +0000 Subject: [PATCH] * java/lang/natPosixProcess.cc (startProcess): Fix thinko. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78725 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/ChangeLog | 13 +++++++++++++ libjava/java/lang/natPosixProcess.cc | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index f23a960..df098e7 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,16 @@ +2004-03-01 Per Bothner + + * java/lang/natPosixProcess.cc (startProcess): Fix thinko. + +2004-03-01 Per Bothner + + * java/nio/channels/Channels.java (newInputStream, newOutputStream): + Optimize when argument is a FileChannelImpl. + (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)): + New native methods. + * java/nio/channels/natChannels.cc: New file for new native methods. + * Makefile.am: Update accordingly. + 2004-02-29 Per Bothner * java/nio/channels/FileChannelImpl.java: Moved to package diff --git a/libjava/java/lang/natPosixProcess.cc b/libjava/java/lang/natPosixProcess.cc index 644c0a1..fb97020 100644 --- a/libjava/java/lang/natPosixProcess.cc +++ b/libjava/java/lang/natPosixProcess.cc @@ -192,7 +192,7 @@ java::lang::ConcreteProcess::startProcess (jstringArray progarray, // with no way to communicate with it. errorStream = new FileInputStream (new FileChannelImpl(errp[0], FileChannelImpl::READ)); inputStream = new FileInputStream (new FileChannelImpl(inp[0], FileChannelImpl::READ)); - outputStream = new FileOutputStream (new FileChannelImpl(outp[0], FileChannelImpl::WRITE)); + outputStream = new FileOutputStream (new FileChannelImpl(outp[1], FileChannelImpl::WRITE)); // We don't use vfork() because that would cause the local // environment to be set by the child. -- 2.7.4