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]

Shutdown doesn't seem to work when invoked from ssh session


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/


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