|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The 'ten' program is the main() that is also listed in my program listing, between the /* */ above the other. I've included everything below again.
Oops. It's early. ;-)
'./ten' at itsself runs perfectly at the command line. The 'done' message does not appear, so 'ten' should be running fine. Well, it does pop-up in the Process Viewer, so it runs yes, but only a fraction of a second, but it should wait for ten seconds (see listing below) and then exit. Indeed, I do not want to see the 'done' message, it was only put there as a test.
execvp("./ten",0); // this is the code the child runs
char *const exec_args[2] = {"./ten", 0};
execvp(exec_args[0], exec_args);--Jim
| References: | |
| >Re: Little fork() question (From: email@hidden) |
| Home | Archives | 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 © 2011 Apple Inc. All rights reserved.