• 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: monitor child process...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monitor child process...


  • Subject: Re: monitor child process...
  • From: Lloyd Dupont <email@hidden>
  • Date: Wed, 18 Jun 2003 09:21:34 +1000

good to know.
then the NSTask object is really the way to go ...

On Wednesday, June 18, 2003, at 01:35 AM, Mike Davis wrote:

On Tuesday, June 17, 2003, at 04:01 pm, email@hidden wrote:

Date: Tue, 17 Jun 2003 06:38:10 -0700
Subject: Re: monitor child process...
Cc: email@hidden, email@hidden
To: Lloyd Dupont <email@hidden>
From: Kaelin Colclasure <email@hidden>

Try 'man wait' and 'man sigaction' (look for the bits about SIGCHLD).
I also highly recommend 'Advanced Programming in the Unix Environment'
by Stevens.

Be aware that if he's mixing in with CFM, signals are not a good thing, speaking from experience.

I was using signals for async I/O and it'd blow up when the framework was used by a CFM app. I guess there's conflict with the CW runtime. I ditched the whole thing.

He may need to use the nobind versions of signals when mixing with CFM.

The Stevens books should be required reading by anyone developing applications on the Mac in C based languages.


-- Kaelin

On Monday, June 16, 2003, at 09:23 PM, Lloyd Dupont wrote:

I create a child process via fork() & execl()
I have its pid_t id.
I want to monitor its health in the parent process. basically know if
it's still alive or not and, eventually, restart it.
how to do that ?
I just ignore the function name .. and man exec didn't help ...
_______________________________________________
_______________________________________________
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: 
 >Re: monitor child process... (From: Mike Davis <email@hidden>)

  • Prev by Date: NSAppleScript error that is not an error
  • Next by Date: Anyone interested in sourceforging Address550?
  • Previous by thread: Re: monitor child process...
  • Next by thread: Re: monitor child process...
  • Index(es):
    • Date
    • Thread