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).
Created attachment 456145 [details] Patch
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].
<rdar://problem/91073577>