X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <496E7883.9080003@cygwin.com>
Date: Wed, 14 Jan 2009 18:42:59 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How do I shut down Cygwin cleanly?
References: <Pine.CYG.4.58.0901151022060.27524@mondo>
In-Reply-To: <Pine.CYG.4.58.0901151022060.27524@mondo>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
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

john.hunter@utas.edu.au wrote:
> Thanks Larry, but I'm loath to waste space on this and other lists, and also
> people's time by listing any of the knock-on effects of not terminating all
> Cygwin processes (and resetting locks etc.) prior to firing up Cygwin again -
> it seems reasonable to me that these effects would exist (I've experienced
> them) but it also seems largely irrelevant to my present question to discuss
> them. This is not a bug report - it is a "howto" request.
> 
> So I'll summarise my original post into a single question:
> 
> When running the latest version of Cygwin on Windows XP, what is the best simple
> way of terminating all Cygwin processes, and resetting XP to effectively the
> same state as it was before Cygwin was started?

It depends on what you're running.  If you've just started a Cygwin shell or
shells, exiting them is enough.  If you have a Cygwin service or services
running, then you must stop them (with 'cygrunsrv --stop' or 'net stop').
If you have X running, you must exit X (typically through the menu on the
X taskbar item).  If you have a combination of these running, then you
must do some combination of them.  This will return you to a state where
cygwin1.dll is not loaded anymore, which is the same process state
relative to Cygwin as you were before you started any of them.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

