Re: loading kext from a daemon program
Re: loading kext from a daemon program
- Subject: Re: loading kext from a daemon program
- From: Matt Ginzton <email@hidden>
- Date: Thu, 04 May 2006 13:04:00 -0700
int result = execlp("kextload", "kextload", "<path to my kext>" (char *)0);
this does load the kext but exists my daemon program, I am guessing
because of what the documentation says that it replaces the current
process image with the new process image.
The normal Unix way of doing this is a combination of fork, exec, and
wait. Fork creates a separate process, in which you can exec kextload,
and then the parent process waits for the child to exit.
Matt
_______________________________________________
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