Stub/implement(?) xpc_transaction_exit_clean

I say "implement(?)" because it *does* technically do the job (it seems) it's supposed to
This commit is contained in:
Ariel Abreu 2020-08-27 22:09:21 -04:00
parent a5afd7a370
commit 33b6bf1ce8
No known key found for this signature in database
GPG Key ID: ECF8C2B9E8AD3E6B
2 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,8 @@ void xpc_dictionary_set_mach_send(xpc_object_t object, const char* key, mach_por
xpc_object_t xpc_connection_copy_entitlement_value(xpc_connection_t connection, const char* entitlement); xpc_object_t xpc_connection_copy_entitlement_value(xpc_connection_t connection, const char* entitlement);
void xpc_transaction_exit_clean();
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -1,5 +1,6 @@
#include <xpc/private.h> #include <xpc/private.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
int _xpc_runtime_is_app_sandboxed() int _xpc_runtime_is_app_sandboxed()
{ {
@ -181,3 +182,11 @@ xpc_object_t xpc_connection_copy_entitlement_value(xpc_connection_t connection,
printf("%s\n", __PRETTY_FUNCTION__); printf("%s\n", __PRETTY_FUNCTION__);
return NULL; return NULL;
}; };
// from various notes and comments around its use in WebKit and Security,
// this function seems to tell the XPC runtime that it's ok for the process
// to exit once the XPC runtime finishes doing whatever it needs to
void xpc_transaction_exit_clean() {
// for now, we have nothing to do here except exit
exit(0);
};