|
| [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
And then:
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.
-DrD-
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Daemonic notifications... (From: David DeHaven <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.