Skip to content

Commit

Permalink
Make sure there is no extra white space around the pidof command.
Browse files Browse the repository at this point in the history
  • Loading branch information
naderman committed Apr 14, 2010
1 parent caef2b0 commit 0b7b863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_plugin/includes/search/fulltext_sphinx.php
Expand Up @@ -867,7 +867,7 @@ function searchd_running()
exec('whereis -b pidof', $output);
if (sizeof($output) > 1)
{
$output = explode(' ', $output[0]);
$output = explode(' ', trim($output[0]));
$pidof_command = $output[1]; // 0 is pidof:
}

Expand Down

0 comments on commit 0b7b863

Please sign in to comment.