* java/lang/natPosixProcess.cc (startProcess): Fix thinko.

From-SVN: r78725
This commit is contained in:
Per Bothner 2004-03-01 13:33:28 -08:00 committed by Per Bothner
parent 1c09c5e5c4
commit dd341087ac
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,16 @@
2004-03-01 Per Bothner <per@bothner.com>
* java/lang/natPosixProcess.cc (startProcess): Fix thinko.
2004-03-01 Per Bothner <per@bothner.com>
* 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 <per@bothner.com>
* java/nio/channels/FileChannelImpl.java: Moved to package

View File

@ -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.