X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
X-Authenticated: #19222419
Message-ID: <48CF7EFE.9070306@gmx.net>
Date: Tue, 16 Sep 2008 11:40:14 +0200
From: Sybille Ebert <sybille.ebert@gmx.net>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: cygserver 1.5.25-15 slows down logoff
References: <48BEB7F8.2080908@gmx.net> <48BF5B9D.1010501@gmx.net>
In-Reply-To: <48BF5B9D.1010501@gmx.net>
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.71
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> My best guess would be that cygserver receives some sort of event that
> causes it to wait/deadlock. I would really appreciate if someone could
> look into what could be going wrong.

I did some additional research. It seems that Windows in fact does send
CTRL_LOGOFF_EVENT to a running service when the user is logging off.

I am now reasonably sure that this is a bug in cygserver. The bug causes
logoff event to be handled inappropriately. I am guessing
SetConsoleCtrlHandler.

The bug seems specific to x64. The problem only appears when a local
user logs off, and not when remote desktop user logs off.

I am really frustrated with logging off/shutdown taking up to 6 minutes.
Unfortunately, my knowledge of Cygwin internals is extremely limited. If
somebody could get me a good starting point, I am willing to look into it.

S

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

