mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8299034
: Runtime::exec clarification of inherited environment
Reviewed-by: alanb
This commit is contained in:
parent
752a37016f
commit
6a4a874356
2 changed files with 6 additions and 0 deletions
|
@ -1004,6 +1004,8 @@ public final class ProcessBuilder
|
|||
* be required to start a process on some operating systems.
|
||||
* As a result, the subprocess may inherit additional environment variable
|
||||
* settings beyond those in the process builder's {@link #environment()}.
|
||||
* The minimal set of system dependent environment variables
|
||||
* may override the values provided in the environment.
|
||||
*
|
||||
* <p>If there is a security manager, its
|
||||
* {@link SecurityManager#checkExec checkExec}
|
||||
|
@ -1181,6 +1183,8 @@ public final class ProcessBuilder
|
|||
* be required to start a process on some operating systems.
|
||||
* As a result, the subprocess may inherit additional environment variable
|
||||
* settings beyond those in the process builder's {@link #environment()}.
|
||||
* The minimal set of system dependent environment variables
|
||||
* may override the values provided in the environment.
|
||||
* <p>
|
||||
* If there is a security manager, its
|
||||
* {@link SecurityManager#checkExec checkExec}
|
||||
|
|
|
@ -569,6 +569,8 @@ public class Runtime {
|
|||
* be required to start a process on some operating systems.
|
||||
* As a result, the subprocess may inherit additional environment variable
|
||||
* settings beyond those in the specified environment.
|
||||
* The minimal set of system dependent environment variables
|
||||
* may override the values provided in the environment.
|
||||
*
|
||||
* <p>{@link ProcessBuilder#start()} is now the preferred way to
|
||||
* start a process with a modified environment.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue