From: Ian Campbell Subject: Re: [PATCH V9 7/7] libxl: Introduce a QMP client Date: Thu, 29 Sep 2011 12:54:09 +0100 Message-ID: <1317297249.26672.173.camel@zakaz.uk.xensource.com> References: <1317296277-2838-1-git-send-email-anthony.perard@citrix.com> <1317296277-2838-8-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1317296277-2838-8-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony PERARD Cc: Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2011-09-29 at 12:37 +0100, Anthony PERARD wrote: > > + qmp->qmp_fd = socket(AF_UNIX, SOCK_STREAM, 0); > + if (qmp->qmp_fd < 0) { > + return -1; > + } Is SOCK_CLOEXEC standard enough to use? Probably not. We should use FD_CLOEXEC though. Ian.