jenkinsci/jenkins — pull request #1192 by ydubreuil (2014-04-16 14:04:26+00:00)
Title: 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.