Re: Shutdown/Restart computer
Re: Shutdown/Restart computer
- Subject: Re: Shutdown/Restart computer
- From: Kyle Sluder <email@hidden>
- Date: Mon, 14 Sep 2009 18:23:13 -0700
On Sep 14, 2009, at 6:14 PM, vinai <email@hidden> wrote:
A call to the system command, like:
system ("sudo /sbin/shutdown -h now');
Nononono. This is entirely the wrong way to do this. ESPECIALLY for
privileged operations.
Read the section Application Responsibilities in Logout
Responsibilities in this document: http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/BootProcess.html
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden