Also log the directory in which the command used by failure_handler was executed. While often the same, it isn't always, and so it this should simplify troubleshooting for someone looking at this at a glance without being a failure_handler expert.
Example output after this change: ---------------------------------------- [2024-05-24 14:26:46] [/usr/bin/pmap, -p, 2233017] timeout=20000 in /<my-absolute-project-dir>/JTwork/scratch ---------------------------------------- before: ---------------------------------------- [2024-05-24 14:26:46] [/usr/bin/pmap, -p, 2233017] timeout=20000 ---------------------------------------- ------------- Commit messages: - 8332898 failure_handler: log directory of commands Changes: https://git.openjdk.org/jdk/pull/19396/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19396&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8332898 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/19396.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19396/head:pull/19396 PR: https://git.openjdk.org/jdk/pull/19396