Exemplo n.º 1
0
 /**
  * Delete all status file after exit() called
  *
  */
 public final function shutdown($force = false)
 {
     if ($this->parent_pid == posix_getpid()) {
         $this->logger->info("Shutdown in progress, cleaning environment");
         Lock::release();
         Status::release();
         Queue::release();
         Planner::release();
     }
     if ($force === true) {
         $this->logger->info("Shutdown in progress, cleaning environment");
         Status::release();
         Queue::release();
         Planner::release();
     }
 }
Exemplo n.º 2
0
 public function testRelease()
 {
     $result = \Comodojo\Extender\Lock::release();
     $this->assertTrue($result);
 }