Skip to content

Commit

Permalink
Improve the console support
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed Dec 8, 2019
1 parent c75a87d commit 838607b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$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}'", $pid);
$command = sprintf("ps -p %d --no-heading | awk '{print $1}'", (int) $pid);

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

0 comments on commit 838607b

Please sign in to comment.