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

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