Bug 238559

Summary: Use dispatch_source_create(DISPATCH_SOURCE_TYPE_SIGNAL, SIGTERM) in setOSTransaction()
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2022-03-30 10:37:23 PDT
Use dispatch_source_create(DISPATCH_SOURCE_TYPE_SIGNAL, SIGTERM) in setOSTransaction() instead of a low-level signal(SIGTERM) handler, as recommended by the XPC team. This is better becomes it has less limitations about what you can do in the handler. It is also possible to set several handlers this way, in different parts of the code (i.e. also not worry about some other code overriding our handler).
Attachments
Patch (2.86 KB, patch)
2022-03-30 10:38 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2022-03-30 10:38:42 PDT
EWS
Comment 2 2022-03-30 16:34:24 PDT
Committed r292128 (249038@main): <https://commits.webkit.org/249038@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456145 [details].
Radar WebKit Bug Importer
Comment 3 2022-03-30 16:35:17 PDT
Note You need to log in before you can comment on or make changes to this bug.