• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shutdown/Restart computer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Shutdown/Restart computer (From: vinai <email@hidden>)

  • Prev by Date: Re: Help book content
  • Next by Date: Need -[NSTask waitUntilExitOrTimeout:] (was NSTask "Thread Unsafe"...)
  • Previous by thread: Re: Shutdown/Restart computer
  • Next by thread: Re: Shutdown/Restart computer
  • Index(es):
    • Date
    • Thread