Use ps xww because w isn't wide enough on deb with long jenkins paths.

This commit is contained in:
Daniel Nichter
2013-08-10 19:38:34 -07:00
parent fe0e2f21c0
commit b966a0f4a3
2 changed files with 2 additions and 2 deletions

View File

@@ -823,7 +823,7 @@ sub get_cmd_pid {
my $cmd = shift;
$cmd =~ s/\./\\./g;
$cmd =~ s/-/\\-/g;
my $output = `ps wx | grep -v grep | grep '$cmd'`;
my $output = `ps xww | grep -v grep | grep '$cmd'`;
my @cmds = $output =~ m/\n/g;
if ( @cmds > 1 ) {
die "Found " . scalar @cmds . " commands matching '$cmd': @cmds";