Received: from eggs.gnu.org ([2001:4830:134:3::10]:52806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzpvL-000338-LH for qemu-devel@nongnu.org; Fri, 20 Nov 2015 12:56:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzpvJ-0007TR-1O for qemu-devel@nongnu.org; Fri, 20 Nov 2015 12:56:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzpvI-0007TJ-SK for qemu-devel@nongnu.org; Fri, 20 Nov 2015 12:56:36 -0500 From: Markus Armbruster Date: Fri, 20 Nov 2015 18:56:33 +0100 Message-ID: <871tbktuzy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] Is ivshmem's test for unix domain client socket valid? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Luiz Capitulino , Claudio Fontana , marcandre.lureau@redhat.com Looks rather fishy: if (strncmp(s->server_chr->filename, "unix:", 5)) { error_setg(errp, "chardev is not a unix client socket"); return; } Paolo, is this reliable? Is it the proper way to check?