Bug 224004

Summary: Use MACH_PORT_VALID() when wanting to check if a mach port is valid
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, darin, ggaren, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=223982
Attachments:
Description Flags
Patch none

Description Chris Dumez 2021-03-31 09:59:11 PDT
Use MACH_PORT_VALID() when wanting to check if a mach port is valid, instead of checking for MACH_PORT_NULL. MACH_PORT_VALID() is the correct way to check for validity since it also checks for the MACH_PORT_DEAD value.
Comment 1 Chris Dumez 2021-03-31 10:01:17 PDT
Created attachment 424783 [details]
Patch
Comment 2 EWS 2021-03-31 17:39:52 PDT
Committed r275327: <https://commits.webkit.org/r275327>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 424783 [details].
Comment 3 Radar WebKit Bug Importer 2021-03-31 17:40:19 PDT
<rdar://problem/76080057>