]> git.saurik.com Git - apple/system_cmds.git/commitdiff
system_cmds-175.2.tar.gz mac-os-x-1004 v175.2
authorApple <opensource@apple.com>
Fri, 11 May 2001 17:46:43 +0000 (17:46 +0000)
committerApple <opensource@apple.com>
Fri, 11 May 2001 17:46:43 +0000 (17:46 +0000)
kextd.tproj/KEXTD.c

index 69f1ccf58254fe26d526438d3d990bba9bafe45c..b00a2324c4a73d45d73d7eac1416df485dfc9f5a 100644 (file)
@@ -17,6 +17,7 @@
 #include <mach/kmod.h>
 #include <syslog.h>
 
+#include <CoreFoundation/CFPriv.h>              // for _CFRunLoopSetCurrent();
 
 #define TIMER_PERIOD_S 10
 #define LOOKAPPLENDRV 1
@@ -1514,6 +1515,14 @@ KEXTdaemon(nochdir, noclose)
     case -1:
             return (-1);
     case 0:
+           /*
+            * Under some circumstances a CFRunLoop could have been established
+            * in the parent process.  Since the mach ports associated with the
+            * run loop are not passed to the child process we need to start
+            * with a clean slate.
+            */
+            _CFRunLoopSetCurrent(NULL);
+
             break;
     default:
             KEXTdaemonWait();