Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Shutdown doesn't seem to work when invoked from ssh session Date: Mon, 10 May 2004 07:33:44 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Egerton, James" To: X-OriginalArrivalTime: 10 May 2004 14:33:45.0064 (UTC) FILETIME=[CC6B6E80:01C4369B] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i4AEegTx022268 I've tried using the Cygwin shutdown-1.4 from an ssh session and it doesn't seem to do anything. The call to ExitWindowsEx doesn't appear to fail, but nothing happens after the "WARNING!!!..." message is displayed. I have verified that the system can be rebooted from ssh if InitiateSystemShutdown is called instead of ExitWindowsEx and this appears to be consistent with the ExitWindowsEx description: The ExitWindowsEx function returns as soon as it has initiated the shutdown process. The shutdown or logoff then proceeds asynchronously. The function is designed to stop all processes in the caller's logon session. Therefore, if you are not the interactive user, the function can succeed without actually shutting down the computer. If you are not the interactive user, use the InitiateSystemShutdown or InitiateSystemShutdownEx function. jim -- 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/