From 442d665894a7fb6266620db8a5bea291558ba08b Mon Sep 17 00:00:00 2001 From: Apple Date: Fri, 11 May 2001 17:46:43 +0000 Subject: [PATCH] system_cmds-175.2.tar.gz --- kextd.tproj/KEXTD.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kextd.tproj/KEXTD.c b/kextd.tproj/KEXTD.c index 69f1ccf..b00a232 100644 --- a/kextd.tproj/KEXTD.c +++ b/kextd.tproj/KEXTD.c @@ -17,6 +17,7 @@ #include #include +#include // 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(); -- 2.45.2