Re: loading kext from a daemon program
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Thunderbird 1.5.0.2 (Windows/20060308) int result = execlp("kextload", "kextload", "<path to my kext>" (char *)0); Matt _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Ginzton