• 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
Can't exec from a Cocoa app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't exec from a Cocoa app?


  • Subject: Can't exec from a Cocoa app?
  • From: "Tom Harrington" <email@hidden>
  • Date: Wed, 23 Aug 2006 16:46:36 -0600

I have an app which at some point wants to call execle().  However the
call fails, returning -1 with errno set to ENOTSUP, "Operation not
supported".

The execle() call is pointing to a valid mach-O binary (itself, as it
happens, and yeah it's the binary and not the bundle).  The reason I
bring this up here is that if I copy and paste the execle() call into
a plain old C command-line app (a basic sanity check done since "man
execle" doesn't even allow that ENOTSUP can happen), it works exactly
as I'd expect.  So... something about running as a Cocoa app makes
this not work?  Is there something extra I need to do to make it work
from my Cocoa app?

--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
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


  • Follow-Ups:
    • Re: Can't exec from a Cocoa app?
      • From: Uli Kusterer <email@hidden>
    • Re: Can't exec from a Cocoa app?
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Accessing preferences of another application
  • Next by Date: Re: Can't exec from a Cocoa app?
  • Previous by thread: Re: [SOLVED] - MainMenu.nib - MyDocument.nib bindings question...
  • Next by thread: Re: Can't exec from a Cocoa app?
  • Index(es):
    • Date
    • Thread