• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Launching an app from Carbon app (newbie question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching an app from Carbon app (newbie question)


  • Subject: Re: Launching an app from Carbon app (newbie question)
  • From: "Tom K." <email@hidden>
  • Date: Mon, 17 Oct 2005 02:26:33 -0700

The fork and execve works now, but unfortunately, it still has not solved my problem. What happens now is that if I make the parent process waitpid, then the parent goes to sleep, and the children keep running, with the application update happening successfully, but I can only tell because I can see the console output. The children never get the UI back, and the parent is still sitting in the task bar at the bottom, but since it is asleep, I can't interact with it. This leaves me in what is effectively a deadlocked situation. Its some progress at least :)

At 09:47 PM 10/16/2005, Andrew Farmer wrote:
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);




_______________________________________________ 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
References: 
 >Launching an app from Carbon app (newbie question) (From: "apple" <email@hidden>)
 >Re: Launching an app from Carbon app (newbie question) (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Hashing a folder
  • Next by Date: NSMatrix rows and columns
  • Previous by thread: Re: Launching an app from Carbon app (newbie question)
  • Next by thread: Checkboxes in a combo box
  • Index(es):
    • Date
    • Thread