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

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


  • Subject: Slightly OT: SIGKILL (force quit) and child process termination
  • From: Guy Meyer <email@hidden>
  • Date: Tue, 28 Nov 2006 18:18:29 +0200

My application uses a child process, which is launched by NSTask.

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

One solution to the problem is to implement a periodic IPC between the processes. Another is to regularly check parent pid existence. I am not interested in these solutions.

Looking at Terminal.app and it is child processes (login, bash), when you SIGKILL one of them, for example bash, the child process that had been launched through it is also being killed. If you SIGKILL the terminal all its child processes are also killed.

Obviously, as SIGKILL is none catchable the SIGKILL is also being sent by the Kernel to the child processes.

How can I achieve same behavior ?

Thanks

Guy


_______________________________________________

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


  • Follow-Ups:
    • Re: Slightly OT: SIGKILL (force quit) and child process termination
      • From: email@hidden
    • Re: Slightly OT: SIGKILL (force quit) and child process termination
      • From: Cameron Hayne <email@hidden>
    • Re: Slightly OT: SIGKILL (force quit) and child process termination
      • From: "stephen joseph butler" <email@hidden>
  • Prev by Date: Re: memory allocation and virtual memory increase
  • Next by Date: Re: memory allocation and virtual memory increase
  • Previous by thread: NSTableView: scrolling bug??
  • Next by thread: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • Index(es):
    • Date
    • Thread