Re: monitor child process...
Re: monitor child process...
- Subject: Re: monitor child process...
- From: Mike Davis <email@hidden>
- Date: Tue, 17 Jun 2003 16:35:52 +0100
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.