From: Apple Date: Fri, 11 May 2001 17:46:43 +0000 (+0000) Subject: system_cmds-175.2.tar.gz X-Git-Tag: mac-os-x-1004^0 X-Git-Url: https://git.saurik.com/apple/system_cmds.git/commitdiff_plain/442d665894a7fb6266620db8a5bea291558ba08b system_cmds-175.2.tar.gz --- 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();