delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/11/11:22:33

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <20070711150348 DOT GA632 AT ingber DOT com>
Subject: RE: cygserver error
Date: Wed, 11 Jul 2007 16:22:05 +0100
Message-ID: <000001c7c3cf$3d12fe50$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <20070711150348.GA632@ingber.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 11 July 2007 16:04, Lester Ingber wrote:


> I do now see that if I start Cygwin using C:\cygwin\cygwin.bat (without
> putting `set CYGWIN=server' in my cygwin.bat, since I have it in my
> Windows Envrionment), I do not get the Event Viewer errors I reported.

> bash --login -i

> I have been starting Cygwin with a script using Xming, Xwin or Xwin_GL:

> xterm &

  Hmmm, one of those is a login shell, and the other is not.  That may well
make the difference.  If you add the "-ls" option to the xterm invocation,
does it then behave the same as when you start via cygwin.bat?

> I get the errors I reported previously in this thread with or without
> putting `set CYGWIN=server' in my cygwin.bat.  (cygwin.bat is not being
> called.)  My xterm windows come up fine.
> 
> Unfortunately there was no clue in my Event Viewer log that this had
> anything to do with X.  

  It isn't anything to do with X; it's to do with the way the environment is
configured.  And probably the underlying problem with your service (as
illustrated by the two separate ways of invoking shells above) is that the
environment isn't set right.

  Take a look at the difference in your cygcheck output between the sshd
config and the cygserver config; I think you need to specify CYGWIN=server in
the environment for that particular service, not in your per-user windows
environment.

  So try re-running the cygrunsrv command you used to set up cygserver, and
this time add the option "-e CYGWIN=server".  See this section of the docs for
an example:

http://cygwin.com/cygwin-ug-net/using-cygserver.html#use-cygserver

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019