Exemple #1
0
 /**
  * @memcheck
  */
 public function _testSetPriority()
 {
     $prio = Process::getPriority();
     $pid = pcntl_fork();
     \ION::reinit();
     if ($pid) {
         usleep(10000);
         $this->assertSame($prio + 10, Process::getPriority($pid));
         $this->assertWaitPID($pid);
     } else {
         Process::setPriority(10);
         usleep(20000);
         exit(0);
     }
 }