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

Chris Dumez
Reported 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.
Attachments
Patch (6.94 KB, patch)
2021-03-31 10:01 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-03-31 10:01:17 PDT
EWS
Comment 2 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].
Radar WebKit Bug Importer
Comment 3 2021-03-31 17:40:19 PDT
Note You need to log in before you can comment on or make changes to this bug.