Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improved network interface support on MacOSX #2085
Improved network interface support on MacOSX
See attached patch.
CUPS.org User: mike
OK, I've tweaked your changes slightly - basically, now we'll depend on NetIFUpdate on all platforms, with the old timeout logic being used on operating systems without the system management support. That should make adding the D-BUS stuff for Linux simpler (they have a similar set of network change notifications now) and limits the number of time() calls we do otherwise...
--- scheduler/sysman.c (revision 6073)
- NetIFTime = time(NULL) - 58;
keys = CFArrayCreate(NULL, (const void *)key,
if (CFArrayContainsValue(changedKeys, range, ComputerNameKey))
threadData->sysevent.event |= SYSEVENT_NAMECHANGED;
--- scheduler/network.c (revision 6073)
NetIFTime = time(NULL);