fork/exec a child process from a bundle app
Hello,
I current have two command line C applications, processA and processB.
All processA does is fork/exec processB.
This works as expected from the command line, and if I look in Activity Monitor
I can see them named under "Process Name" as processA and processB.
This simplicity all seems to fly out the window when you introduce a Bundle, and I can't figure out what is going on.
I make simple Bundle called processA.app.
It contains an Info.plist, a MacOS folder with processA and processB inside, and a PkgInfo file, all inside a Contents folder.
The Info.plist is correctly configured to point to processA.
When I run the bundle, both apps appear in the Activity Monitor under the name "processA". Why? Its like processB is still associated with the bundle for some reason and I don't want it to be. I even tried moving processB outside the bundle and executing it from there but its still the same.
Any ideas on this?
One final thing I noticed .. the C sleep() function seems to just not work
when used in a bundled app. Any reason?
Much thanks,
David
I current have two command line C applications, processA and processB.
All processA does is fork/exec processB.
This works as expected from the command line, and if I look in Activity Monitor
I can see them named under "Process Name" as processA and processB.
This simplicity all seems to fly out the window when you introduce a Bundle, and I can't figure out what is going on.
I make simple Bundle called processA.app.
It contains an Info.plist, a MacOS folder with processA and processB inside, and a PkgInfo file, all inside a Contents folder.
The Info.plist is correctly configured to point to processA.
When I run the bundle, both apps appear in the Activity Monitor under the name "processA". Why? Its like processB is still associated with the bundle for some reason and I don't want it to be. I even tried moving processB outside the bundle and executing it from there but its still the same.
Any ideas on this?
One final thing I noticed .. the C sleep() function seems to just not work
when used in a bundled app. Any reason?
Much thanks,
David
MacBook Pro, Mac OS X (10.5.7)