public function registerChildPID($pid)
  {
    $sem_key = sem_get($this->crawler_uniqid);
    sem_acquire($sem_key);
    
    file_put_contents($this->working_directory."pids", $pid."\n", FILE_APPEND);
    
    sem_release($sem_key);
  }
public function registerChildPID($pid)
  {
    $sem_key = sem_get($this->crawler_uniqid);
    sem_acquire($sem_key);
    
    file_put_contents($this->working_directory."pids", $pid."\n", FILE_APPEND);
    
    sem_release($sem_key);
  }
public function registerChildPID ( $ pid ) { $ sem_key = sem_get ( $ this -> crawler_uniqid ) ; sem_acquire ( $ sem_key ) ; file_put_contents ( $ this -> working_directory . "pids" , $ pid . "\n" , FILE_APPEND ) ; sem_release ( $ sem_key ) ; }
Registers the PID of a child-process

@param int The IPD
Registers the PID of a child - process