Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lavary/crunz
Browse files Browse the repository at this point in the history
  • Loading branch information
lavary committed Jul 11, 2016
2 parents fa707fd + 8f388cc commit 0923d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function isLocked()
{
$lock_file = $this->lockFilePath();

$pid = file_exists($lock_file) ? trim(file_get_contents($lock_file)) : null;
$pid = file_exists($lock_file) ? (int)trim(file_get_contents($lock_file)) : null;

return (!is_null($pid) && posix_getsid($pid)) ? true : false;

Expand Down

0 comments on commit 0923d46

Please sign in to comment.