public function createDaemon(KernelInterface $kernel, DaemonOptions $options, int $fd = DaemonInterface::FCGI_LISTENSOCK_FILENO): DaemonInterface
    {
        $socket = fopen('php://fd/'.$fd, 'r');

        if (false === $socket) {
            throw new \RuntimeException('Could not open ' . $fd);
        }

        return $this->createDaemonFromStreamSocket($kernel, $options, $socket);
    }