This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How do I shut down Cygwin cleanly?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]