Hi All,
I am launching installer from daemon to install my packager. I have observed that if the user is not logged in then installer hangs (Observed in Activity Monitor) but packager is installed successfully.
Here If I wait for user to login, then installer is exited normally once packager installation is done.
Following is spindump is observed for installer:
-------------------------------------------------------------------------------------------------------
Thread 0x75d DispatchQueue 1 997 samples (1-997) priority 31 cpu time 0.008s
997 start + 1 (libdyld.dylib + 13769) [0x7fff8aefa5c9]
997 ??? (installer + 37322) [0x1051951ca]
997 ??? (installer + 36596) [0x105194ef4]
997 -[NSRunLoop(NSRunLoop) run] + 74 (Foundation + 1073743) [0x7fff8662224f]
997 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278 (Foundation + 592681) [0x7fff865acb29]
997 CFRunLoopRunSpecific + 296 (CoreFoundation + 465880) [0x7fff85c5bbd8]
987 __CFRunLoopRun + 1371 (CoreFoundation + 467835) [0x7fff85c5c37b]
987 __CFRunLoopServiceMachPort + 212 (CoreFoundation + 470708) [0x7fff85c5ceb4]
987 mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff85bc94de]
*987 ipc_mqueue_receive_continue + 0 (kernel + 1144832) [0xffffff8000317800]
10 __CFRunLoopRun + 2024 (CoreFoundation + 468488) [0x7fff85c5c608]
10 __CFRunLoopDoTimers + 301 (CoreFoundation + 1221949) [0x7fff85d1453d]
10 __CFRunLoopDoTimer + 1059 (CoreFoundation + 749427) [0x7fff85ca0f73]
10 _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_ + 20 (CoreFoundation + 750308) [0x7fff85ca12e4]
10 __NSFireTimer + 95 (Foundation + 309795) [0x7fff86567a23]
10 -[PKInstallClient _statusTimerHasFired:] + 103 (PackageKit + 13429) [0x7fff8a8d7475]
10 -[PKInstallClient _installStatusByConnectingToDaemon] + 227 (PackageKit + 12853) [0x7fff8a8d7235]
10 -[_PKInstallClientConnection waitUntilDoneOrTimedOut] + 45 (PackageKit + 17991) [0x7fff8a8d8647]
10 semaphore_timedwait_trap + 10 (libsystem_kernel.dylib + 70962) [0x7fff85bc9532]
*9 semaphore_wait_continue + 0 (kernel + 1353536) [0xffffff800034a740]
-------------------------------------------------------------------------------------------------------
My requirement is to install the packager from daemon and user may not login when installation starts.
Thanks,
Simran
I am launching installer from daemon to install my packager. I have observed that if the user is not logged in then installer hangs (Observed in Activity Monitor) but packager is installed successfully.
Here If I wait for user to login, then installer is exited normally once packager installation is done.
Following is spindump is observed for installer:
-------------------------------------------------------------------------------------------------------
Thread 0x75d DispatchQueue 1 997 samples (1-997) priority 31 cpu time 0.008s
997 start + 1 (libdyld.dylib + 13769) [0x7fff8aefa5c9]
997 ??? (installer + 37322) [0x1051951ca]
997 ??? (installer + 36596) [0x105194ef4]
997 -[NSRunLoop(NSRunLoop) run] + 74 (Foundation + 1073743) [0x7fff8662224f]
997 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278 (Foundation + 592681) [0x7fff865acb29]
997 CFRunLoopRunSpecific + 296 (CoreFoundation + 465880) [0x7fff85c5bbd8]
987 __CFRunLoopRun + 1371 (CoreFoundation + 467835) [0x7fff85c5c37b]
987 __CFRunLoopServiceMachPort + 212 (CoreFoundation + 470708) [0x7fff85c5ceb4]
987 mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff85bc94de]
*987 ipc_mqueue_receive_continue + 0 (kernel + 1144832) [0xffffff8000317800]
10 __CFRunLoopRun + 2024 (CoreFoundation + 468488) [0x7fff85c5c608]
10 __CFRunLoopDoTimers + 301 (CoreFoundation + 1221949) [0x7fff85d1453d]
10 __CFRunLoopDoTimer + 1059 (CoreFoundation + 749427) [0x7fff85ca0f73]
10 _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_ + 20 (CoreFoundation + 750308) [0x7fff85ca12e4]
10 __NSFireTimer + 95 (Foundation + 309795) [0x7fff86567a23]
10 -[PKInstallClient _statusTimerHasFired:] + 103 (PackageKit + 13429) [0x7fff8a8d7475]
10 -[PKInstallClient _installStatusByConnectingToDaemon] + 227 (PackageKit + 12853) [0x7fff8a8d7235]
10 -[_PKInstallClientConnection waitUntilDoneOrTimedOut] + 45 (PackageKit + 17991) [0x7fff8a8d8647]
10 semaphore_timedwait_trap + 10 (libsystem_kernel.dylib + 70962) [0x7fff85bc9532]
*9 semaphore_wait_continue + 0 (kernel + 1353536) [0xffffff800034a740]
-------------------------------------------------------------------------------------------------------
My requirement is to install the packager from daemon and user may not login when installation starts.
Thanks,
Simran