X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 14 Jan 2009 19:07:59 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: How do I shut down Cygwin cleanly? Message-ID: <20090115000759.GA7940@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Note-from-DJ: This may be spam On Thu, Jan 15, 2009 at 10:37:09AM +1100, john DOT hunter AT utas DOT edu DOT 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? Cygwin processes are just windows processes and they are diverse. If you want to stop a running process you use whatever mechanism that process requires for shutdown. There is no one method to properly shut down a process on either Windows, Cygwin, or Linux. If you want to use a brute force technique then you could "kill ; kill -9" every process that you see by running "ps". That could have all sorts of unpleasant side-effects, however. To summarize: There is no one method to accomplish what you seem to be asking. cgf -- 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/