Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mach-O, MoreSCF, CFRunLoopSource.



Hi ppl,

I have a Mach-o console app (daemon) that
uses IONotificationPortCreate and
IONotificationPortGetRunLoopSource to get
a runloop to which I attach USB notifications
(IOUSBDevice) so that I can be called when my device
is plugged in/out.

The notification callbacks use MoreSCF to alter the
network settings. My problem is that sometimes (80%)
after using for example MoreSCSetCurrentSet() my process
dies completely (killed).

To be noted is that I had to strip some parts of MoreSCF
and NOT include the ApplicationSErvices.framework and
CoreServices.framework to get it to compile (Having those
in will kill the process when calling CFRunLoopSource)

Is there any issue when running CFRunLoopSource with MoreSCF
in a command line Mach-O tool ? Or rather, does anyone
know why my process is killed when using MoreSCF? It is killed
sporadically, the call itself completes, but the process dies.

Thanks,
George.
_______________________________________________
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: 
 >Re: ApplePMU driver. (From: Wayne Flansburg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.