Re: __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
Re: __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
- Subject: Re: __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
- From: Jens Alfke <email@hidden>
- Date: Sun, 5 Apr 2009 14:16:22 -0700
On Apr 5, 2009, at 12:46 PM, Ashley Allen wrote:
I am forking a process from a cgi-script to convert a .caff file
into an aiff file and mp3.
You can't fork a process that's going to use any Mac APIs. The
fundamental reason for this, I think, is that forking doesn't copy the
Mach ports, so none of the process's connections to the various kernel
resources and system daemons/agents will work right.
As David said, the only thing you can call after fork() is exec(), to
start all over again.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden