Skip to content
Commit 547d4ed8 authored by Yoann Dubreuil's avatar Yoann Dubreuil
Browse files

Fix jenkins restart on Linux after a JRE system update

Daemon.getCurrentExecutable() use /proc/PID/exe to retrieve the used JRE. This link is broken when the target changes (ie after a JRE system update) because the kernel appends ' (deleted)' to the symlink. This patch uses the first argument of the command line (in /proc/PID/cmdline) instead.
parent 929a78f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment