Skip to content

Commit

Permalink
Merge branch '5.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Mar 25, 2018
2 parents ebac70f + 57c982e commit e8845cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Scheduling/CallbackEvent.php
Expand Up @@ -60,8 +60,12 @@ public function run(Container $container)
return;
}

register_shutdown_function(function () {
$this->removeMutex();
$pid = getmypid();

register_shutdown_function(function () use ($pid) {
if ($pid === getmypid()) {
$this->removeMutex();
}
});

parent::callBeforeCallbacks($container);
Expand Down

0 comments on commit e8845cc

Please sign in to comment.