8299034: Runtime::exec clarification of inherited environment

Reviewed-by: alanb
This commit is contained in:
Roger Riggs 2023-01-12 14:54:39 +00:00
parent 752a37016f
commit 6a4a874356
2 changed files with 6 additions and 0 deletions

View File

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

View File

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