|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Modify the "Another USB Notification Sample", add the following as the very first statement inside main():_______________________________________________
daemon(1,1); // keep using terminal as stdout
if(kr) printf("kr = 0xx\n", kr);
right after the call to IOServiceAddMatchingNotification.
It blows up on 10.2, I've seen two results: 0x1000000a and 0x10000003. This worked fine under 10.1, 10.1.1, 10.1.2, and 10.1.5.
Any ideas? Am I missing something? Archive search was fruitless...
It has something to do with Mach IPC, but I'm not sure where to look for those errors... 0x0a (10) is KERN_MEMORY_ERROR in mach/kern_return.h and 0x03 is KERN_NO_SPACE. Comment out the daemon() call and it works like a champ.
darwin-drivers mailing list | email@hidden
Do not post admin requests to the list. They will be ignored.
|>Daemonic notifications... (From: David DeHaven <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.