Changeset 284823 in webkit
- Timestamp:
- Oct 25, 2021, 2:33:50 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/PlatformHave.h (modified) (1 diff)
-
WTF/wtf/spi/darwin/XPCSPI.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Platform/IPC/cocoa/DaemonConnectionCocoa.mm (modified) (1 diff)
-
WebKit/Shared/Daemon/DaemonUtilities.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r284822 r284823 1 2021-10-25 Alex Christensen <achristensen@webkit.org> 2 3 Use xpc_connection_copy_invalidation_reason where available for debugging daemon connection failures 4 https://bugs.webkit.org/show_bug.cgi?id=232152 5 6 Reviewed by Brady Eidson. 7 8 * wtf/PlatformHave.h: 9 * wtf/spi/darwin/XPCSPI.h: 10 1 11 2021-10-25 Ayumi Kojima <ayumi_kojima@apple.com> 2 12 -
trunk/Source/WTF/wtf/PlatformHave.h
r284822 r284823 950 950 #define HAVE_AUDIO_OBJECT_PROPERTY_ELEMENT_MAIN 1 951 951 #define HAVE_IMAGE_RESTRICTED_DECODING 1 952 #define HAVE_XPC_CONNECTION_COPY_INVALIDATION_REASON 1 952 953 #endif 953 954 -
trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h
r284233 r284823 138 138 extern "C" const char * const XPC_ACTIVITY_RANDOM_INITIAL_DELAY; 139 139 extern "C" const char * const XPC_ACTIVITY_REQUIRE_NETWORK_CONNECTIVITY; 140 141 #if HAVE(XPC_CONNECTION_COPY_INVALIDATION_REASON) 142 extern "C" char * xpc_connection_copy_invalidation_reason(xpc_connection_t connection); 143 #endif 140 144 141 145 #if OS_OBJECT_USE_OBJC -
trunk/Source/WebKit/ChangeLog
r284819 r284823 1 2021-10-25 Alex Christensen <achristensen@webkit.org> 2 3 Use xpc_connection_copy_invalidation_reason where available for debugging daemon connection failures 4 https://bugs.webkit.org/show_bug.cgi?id=232152 5 6 Reviewed by Brady Eidson. 7 8 * Platform/IPC/cocoa/DaemonConnectionCocoa.mm: 9 (WebKit::Daemon::ConnectionToMachService<Traits>::initializeConnectionIfNeeded const): 10 * Shared/Daemon/DaemonUtilities.mm: 11 (WebKit::startListeningForMachServiceConnections): 12 1 13 2021-10-25 Kate Cheney <katherine_cheney@apple.com> 2 14 -
trunk/Source/WebKit/Platform/IPC/cocoa/DaemonConnectionCocoa.mm
r284129 r284823 64 64 if (!weakThis) 65 65 return; 66 if (event == XPC_ERROR_CONNECTION_INVALID) 66 if (event == XPC_ERROR_CONNECTION_INVALID) { 67 #if HAVE(XPC_CONNECTION_COPY_INVALIDATION_REASON) 68 auto reason = std::unique_ptr<char[]>(xpc_connection_copy_invalidation_reason(weakThis->m_connection.get())); 69 WTFLogAlways("Failed to connect to mach service %s, reason: %s", weakThis->m_machServiceName.data(), reason.get()); 70 #else 67 71 WTFLogAlways("Failed to connect to mach service %s, likely because it is not registered with launchd", weakThis->m_machServiceName.data()); 72 #endif 73 } 68 74 if (event == XPC_ERROR_CONNECTION_INTERRUPTED) { 69 75 // Daemon crashed, we will need to make a new connection to a new instance of the daemon. -
trunk/Source/WebKit/Shared/Daemon/DaemonUtilities.mm
r284203 r284823 48 48 49 49 xpc_connection_set_event_handler(peer, ^(xpc_object_t event) { 50 if (event == XPC_ERROR_CONNECTION_INVALID) 50 if (event == XPC_ERROR_CONNECTION_INVALID) { 51 #if HAVE(XPC_CONNECTION_COPY_INVALIDATION_REASON) 52 auto reason = std::unique_ptr<char[]>(xpc_connection_copy_invalidation_reason(peer)); 53 NSLog(@"Failed to start listening for connections to mach service %s, reason: %s", serviceName, reason.get()); 54 #else 51 55 NSLog(@"Failed to start listening for connections to mach service %s, likely because it is not registered with launchd", serviceName); 56 #endif 57 } 52 58 if (event == XPC_ERROR_CONNECTION_INTERRUPTED) { 53 59 NSLog(@"Removing peer connection %p", peer);
Note:
See TracChangeset
for help on using the changeset viewer.