From: Ian Jackson Subject: Re: [PATCH] libxl: prevent xl from running if xend is running. Date: Tue, 24 Apr 2012 14:18:52 +0100 Message-ID: <20374.43068.882959.571687@mariner.uk.xensource.com> References: <1335193862-37069-1-git-send-email-roger.pau@citrix.com> <1335194783.4347.34.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1335194783.4347.34.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: George Dunlap , "xen-devel@lists.xen.org" , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH] libxl: prevent xl from running if xend is running."): > On Mon, 2012-04-23 at 16:11 +0100, Roger Pau Monne wrote: ... > > + for (int i = 0; i < sizeof(locks)/sizeof(locks[0]); i++) { > > + if (!access(locks[i], F_OK) && !force_execution) { > > + fprintf(stderr, "xend is running, which prevents xl from working " > > + "correctly. If you still want to force the " > > + "execution of xl please use the -f option\n"); > > You might as well wrap the output text to 80 columns (I didn't count, I > assume this isn't...) It should be. The best way to do this is probably something like this: + fprintf(stderr, + "xend is running, which prevents xl from working correctly.\n" + "If you still want to force the execution of xl please use the -f\n" + "option\n" + ); (adjust to taste) Ian.