RFR: 8303392: Runtime.exec and ProcessBuilder.start should use System logger [v2]

Thomas Stuefe stuefe at openjdk.org
Sun Mar 5 06:18:16 UTC 2023


On Sat, 4 Mar 2023 14:22:33 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Runtime.exec and ProcessBuilder.start methods create a new operating system process with the program and arguments. Many applications configure a logging subsystem to monitor application events. Logging a process start message with the program, arguments, and stack trace can identify the caller and purpose.
>> Logging the process start event is complementary to the process start event generated for JFR (Java Flight Recorder).
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add javadoc @implNote to Runtime.exec and ProcessBuilder methods

Hi Roger,

I think to be even more useful it could make sense to print the current directory the child is started in as well as the env var array, possibly only with a finer logging level.

Cheers, Thomas

-------------

PR: https://git.openjdk.org/jdk/pull/12862


More information about the core-libs-dev mailing list