Re: loading kext from a daemon program
Re: loading kext from a daemon program
- Subject: Re: loading kext from a daemon program
- From: Kevin Elliott <email@hidden>
- Date: Fri, 5 May 2006 10:32:44 -0700
For the archives and completeness, here is what the cocoa version
would look like...
NSArray* argArray= [NSArray arrayWithObjects: /*List of args*/, NULL;
NSString* kextLoatPath= @"/sbin/kextload";
NSTask* taskObj= [NSTask launchedTaskWithLaunchPath: kextLoatPath
arguments: argArray];
if(taskObj!= NULL)
{
[taskObj waitUntilExit];
int termStatus= [taskObj terminationStatus];
}
If your app was crashing with this my first guess was you were
releasing one or more of the created objects, which would be wrong.
If nothing else jumps out, send me your code snippet off list and
I'll take a look.
--
______________________________________________________
Arguing with an engineer is like wrestling with a pig in mud.
After a while, you realize the pig is enjoying it.
______________________________________________________
Kevin Elliott <mailto:email@hidden>
AIM/iChatAV: email@hidden (video chat available)
______________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden