Re: Launching an app from Carbon app (newbie question)
Re: Launching an app from Carbon app (newbie question)
- Subject: Re: Launching an app from Carbon app (newbie question)
- From: Andrew Farmer <email@hidden>
- Date: Sun, 16 Oct 2005 21:47:12 -0700
On 16 Oct 05, at 17:00, apple wrote:
I tried using execve, but I always get a ENOTSUP returned from
that, and can't figure out why.
execve() will return ENOTSUP if your process has more than one
thread. Forking will fix this, though - try something more like...
pid_t p = fork();
if(p < 0)
{
scream_bloody_murder();
return;
}
if(p == 0)
{
execve(whatever);
}
exit(0);
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden