mirror of
https://github.com/darlinghq/darling-libxpc.git
synced 2024-11-23 11:49:42 +00:00
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:
parent
a5afd7a370
commit
33b6bf1ce8
@ -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
|
||||||
|
@ -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);
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user