public function __construct($port = 4444, $address = '127.0.0.1') { parent::__construct($port, $address); $this->pid = posix_getpid(); if (!file_exists(self::PIPENAME)) { umask(0); if (!posix_mkfifo(self::PIPENAME, 0666)) { die('Cant create a pipe: "' . self::PIPENAME . '"'); } } $this->pipe = fopen(self::PIPENAME, 'r+'); }