Re: fork and exec problems
Re: fork and exec problems
- Subject: Re: fork and exec problems
- From: Chuck Carlson <email@hidden>
- Date: Tue, 10 Nov 2009 10:41:17 -0800
OK, thanks.
I'll try posix_spawn first, as I don't know how to use launchd programatically.
I tried launchd from the command line, but it can't be run from the command line so I suspect exec can't run it either.
On Tue, Nov 10, 2009 at 10:08 AM, Michael Smith
<email@hidden> wrote:
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
This email sent to email@hidden
--
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