protected function initializePipes()
    {
        $this->pipes = [
            fopen($this->hasStdoutSupport() ? 'php://stdout' : 'php://output', 'w'),
            fopen('php://stderr', 'w'),
        ];

        foreach ($this->pipes as $pipe) {
            stream_set_blocking($pipe, 0);
        }
    }