delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/13/12:49:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,TW_TV
X-Spam-Check-By: sourceware.org
Message-ID: <4CB5E31C.2070206@dronecode.org.uk>
Date: Wed, 13 Oct 2010 17:49:32 +0100
From: Jon TURNEY <jon DOT turney AT dronecode DOT org DOT uk>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: davidst AT csc DOT lsu DOT edu
Subject: Re: cygwin + xwin in win7 as unprivileged user?
References: <29889419 DOT post AT talk DOT nabble DOT com> <29897721 DOT post AT talk DOT nabble DOT com> <4CACB164 DOT 70706 AT dronecode DOT org DOT uk> <29899035 DOT post AT talk DOT nabble DOT com> <AANLkTinMarwQT45rKczO=fy5BscciK2fB3tw_PA-HmyD AT mail DOT gmail DOT com> <29934689 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <29934689.post@talk.nabble.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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/10/2010 15:38, davidstvz wrote:
> The problem is, it continues running in the background with the permissions
> of the user that originally started it, and then other users can't do
> anything with it (even when the first user logs off and a new user logs on
> it continues running).

If you really are logging off (and not using user switching), the XWin process 
really should be terminated.  If it doesn't shutdown in response to the 
WM_ENDSESSION it's sent, it'll be forcibly terminated.

However, there seems to be a bug with Xwin that we don't shutdown cleanly when 
sent WM_ENDSESSION, and so leave behind the lock file and unix socket, which 
will cause a subsequent attempt to run Xwin by a different, non-privileged 
user to fail.

Thanks for reporting the problem.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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

- Raw text -


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