8299034: Runtime::exec clarification of inherited environment
Reviewed-by: alanb
This commit is contained in:
parent
752a37016f
commit
6a4a874356
@ -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…
x
Reference in New Issue
Block a user