Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Daemonic notifications...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daemonic notifications...



Well, I started to discuss a similar thing on 18.09.2002, and I wonder why I
now get your message dated at 17.09.2002. So you might have already seen
the discussion I mention below.
Anyway:

I have got the same error message (0x1000000a) when calling
IOServiceAddMatchingNotification from a forked process in 10.2 and reported
this under subject "malloc (vm_allocate) returns with error" to this list.
Got a lot of helpfull tips... where the basic line was: don't use fork but
pthreads instead.
For detailed information, please search the archives for this discussion.

Uwe Gohlke
UGS


At 18:58 Uhr -0500 16.09.2002, David DeHaven wrote:
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.
_______________________________________________
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>)



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.