Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1155822] Validate that pid is a numeric value
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Burman committed Nov 27, 2014
1 parent 1c067b9 commit 58cdc87
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -492,6 +492,12 @@ protected void killPid(String pid) throws IOException {
}

protected boolean isUnixPidRunning(String pid) {
try {
Integer numericPid = Integer.valueOf(pid);
} catch(NumberFormatException e) {
// PID wasn't numeric, it can't be correct
return false;
}

Executor executor = new DefaultExecutor();
executor.setWorkingDirectory(getBinDir());
Expand Down

0 comments on commit 58cdc87

Please sign in to comment.