Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed Dec 8, 2019
1 parent 838607b commit 6762a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Console/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
{
$path = storage_path('queue.pid');

if (is_readable($path) && ! empty($pid = file_get_contents($path))) {
$command = sprintf("ps -p %d --no-heading | awk '{print $1}'", (int) $pid);
if (is_readable($path) && ! empty($pid = (int) file_get_contents($path))) {
$command = sprintf("ps -p %d --no-heading | awk '{print $1}'", $pid);

if (! empty($result = exec($command)) && ($result == $pid)) {
if (! empty($result = (int) exec($command)) && ($result == $pid)) {
return;
}
}
Expand Down

0 comments on commit 6762a88

Please sign in to comment.