Re: fork and exec problems
Re: fork and exec problems
- Subject: Re: fork and exec problems
- From: Michael Smith <email@hidden>
- Date: Tue, 10 Nov 2009 10:08:08 -0800
As Shawn notes, if you possibly can, let launchd invoke your server.
If you absolutely must launch it yourself (e.g. there is information that needs to be passed from a previous session) then posix_spawn is probably the best way to go.
= Mike On Nov 10, 2009, at 9:07 AM, Chuck Carlson wrote: Hello,
I am using vfork and execlp to launch an audio server to send back audio data via udp ports, but I'm getting unstable behavior.
However, If I manually launch the server from the command line, everything works great.
This leads me to think that using vfork/execlp is causing the server to inherit some unfavorable characteristcs from the launching process.
What's the best way to get a nice clean launch just like launchd would do?
Thanks,
--Chuck
-- Ars longa, vita brevis, occasio praeceps, experimentum periculosum, iudicium difficile -- Hippocrates
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden