| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.