X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=F4Ct3nA3riqotiZ+ gYbq7cCMAB/4N9MYjX6n+zZAqujBh2qQLpsuuRXqHaSj38DOA9c7UvqR165tRxDV NbG/LSdtKZlaM+mYnxVIvYm2PPVyy3AOV2O7XatgB1OKpdzRmYFb4oz10hE8xgI3 cS4h+QU9lVusZIKzgTHn3/8+km8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=vgptGsjqLxSh87zGctkADx hk2DU=; b=RQf2ICI2XoZuWExTBbklGooiKkvpN/j8NG/VcU9qXIfe/xzBem2Vkl TFuVNLmPFmWjEBC0OlkFK0g7cr+TYh/OWimVmfar7lprUD/HDMOOmnvgZfbbmE53 /P8vc89FK24hs8c+B84nflL+R2NO+Uq8kDA5PkIu7optx6Peg6KTU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_20,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RDNS_NONE autolearn=no version=3.3.1 Message-id: <51FEFA60.2050707@cygwin.com> Date: Sun, 04 Aug 2013 21:05:36 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: checkX problem or misunderstanding References: <20130803175444 DOT 3628 AT binki> In-reply-to: <20130803175444.3628@binki> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 8/3/2013 4:54 AM, wynfield AT gmail DOT com wrote: > Re: checkX > > $ checkX --version > run2 0.4.2 > > checkX doesn't work as I understand the description below: > > "DESCRIPTION > Determines if X is installed, Xserver is running on specified DISPLAY > and will accept clients. Returns 0 if yes, nonzero otherwise" > > > Environment / Procedure to duplicate the error: > > - I have an X11 server running, started in pty0, where I will test checkX > > - In this pty0, I start an X11 server, which from the xinitrc starts up another mintty > terminal, pty1 with Display environment variable set to :0 > > - Testing checkX in pty1 (which has DISPLAY set) returns a 0 or successful result. > checkX :0 --> returns 0 > > - Moving back to pty0 and running the same command with the same argument gives: > checkX :0 --> return 1 and error condition or no server available. > > > However, if I simply manually set DISPLAY=:0 in pty0 X11 clients will run. > > - export DISPLAY=127.0.0.1:0 > - checkX :0 --> Nnw reports an o.k. this server is useable. > > If one relied on checkX the runing server would be missed. It is doing > nothing that a check if DISPLAY var is set or not andn then possible > testing it. It should has used the value :0 I sent it and do some X11 > stuff I am not aware of. Perhaps we're misunderstanding your confusion here. Can you explain what about Chuck's description of checkX at the link below isn't clear? -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple