• 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: How Do I kill a process from Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How Do I kill a process from Cocoa?


  • Subject: Re: How Do I kill a process from Cocoa?
  • From: p3consulting <email@hidden>
  • Date: Thu, 11 Dec 2003 07:44:22 +0100

If you are the one writing the tool running at root privilege,
you can imagine an interprocess communication mechanism that enable the process
launching the privileged task to ask it to gracefully quit... (a pipe, a Mach port, a DO communication,  whatever)

Pascal Pochet
P3 Consulting
email@hidden


On 10 dic. 2003, at 22:11, Nick Zitzmann wrote:

On Dec 10, 2003, at 6:43 AM, Huyler, Christopher M wrote:

If I create a process by using AuthorizationExecuteWithPrivileges and
something goes wrong, how can I kill the process and any processes
spawned by it from a Cocoa Preference Panel?

Run "kill" using AuthorizationExecuteWithPrivileges()? The problem with launching tasks using AEWP() is the task then needs root privileges to bring them down.

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

"That's a funny thing to promise. Well, you can't never let anything happen to him [Nemo]; then, nothing would ever happen to him." - Dory, from the movie "Finding Nemo"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How Do I kill a process from Cocoa? (From: "Huyler, Christopher M" <email@hidden>)
 >Re: How Do I kill a process from Cocoa? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: input requested : toggling always on top state of window
  • Next by Date: Re: Problem with NSOutlineView::shouldSelectItem: and NSRunCriticalAlertPanel
  • Previous by thread: Re: How Do I kill a process from Cocoa?
  • Next by thread: reading XML in Cocoa ?
  • Index(es):
    • Date
    • Thread