[patch] Runtime.exec()

Bryce McKinlay bryce@albatross.co.nz
Wed Jun 2 04:23:00 GMT 1999


This patch fixes a few problems in the Runtime.exec() implementation.
Currently, the exec(String) methods won't work if the caller specifies
any arguments in the command since they are not converted correctly to
the array form expected by the native code. Also, there are some typos
in natPosixProcess.cc break the environment-passing stuff. I also added
code to preserve the PATH unless the caller explicitly sets it, as it is
used by the execvp() call.
Here's a changelog:
1999年06月02日 Bryce McKinlay <bryce@albatross.co.nz>
 * java/lang/Runtime.java (exec): Convert prog name and arguments
to string array
 * java/lang/natPosixProcess.cc (startProcess): Fixed typo in
environment array conversion, Preserve existing environment if envp not
passed, Preserve PATH unless specified explicitly
regards
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /