• 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: Slightly OT: SIGKILL (force quit) and child process termination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slightly OT: SIGKILL (force quit) and child process termination


  • Subject: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • From: Dave Camp <email@hidden>
  • Date: Tue, 28 Nov 2006 14:55:54 -0800

On Nov 28, 2006, at 2:00 PM, email@hidden wrote:

On 28 Nov 2006, at 17:18, Guy Meyer wrote:

If the parent process is sent a SIGKILL the child process is left orphaned and continues to run, while I am interested in termination.

First of all if someone sends you a SIGKILL it's game over, that is not a normal way to terminate processes.


But if there is no way around it you could let the child process monitor the parent through a kqueue mechanism and then act if the parent process is killed.

Perhaps SIGTERM is what you are looking for. It's common and you can catch it with a signal handler.


Dave

---
It is dark; you are likely to be eaten by a grue. -Zork

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Slightly OT: SIGKILL (force quit) and child process termination (From: Guy Meyer <email@hidden>)
 >Re: Slightly OT: SIGKILL (force quit) and child process termination (From: email@hidden)

  • Prev by Date: Re: Problem drawing directly to bitmap rep using NSGraphicsContext
  • Next by Date: New Cocoa Graphics Tutorial
  • Previous by thread: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • Next by thread: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • Index(es):
    • Date
    • Thread