diff options
Diffstat (limited to 'darwin-bootstrap/bundle-loader.c')
-rw-r--r-- | darwin-bootstrap/bundle-loader.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/darwin-bootstrap/bundle-loader.c b/darwin-bootstrap/bundle-loader.c index ed4dde4..7a90414 100644 --- a/darwin-bootstrap/bundle-loader.c +++ b/darwin-bootstrap/bundle-loader.c @@ -193,13 +193,6 @@ static void handle_xxpc_object(xxpc_object_t object, bool is_reply) { free(desc); } -static void inform_sud_of_clean_exit() { - xxpc_object_t message = xxpc_dictionary_create(NULL, NULL, 0); - xxpc_dictionary_set_string(message, "type", "bye"); - xxpc_connection_send_message(substituted_conn, message); - xxpc_release(message); -} - /* this is DYLD_INSERT_LIBRARIES'd, not injected. */ __attribute__((constructor)) static void init() { @@ -229,6 +222,7 @@ static void init() { ^(xxpc_object_t reply) { handle_xxpc_object(reply, true); }); + xxpc_release(message); /* Timing out *always* means a bug (or the user manually unloaded * substituted). Therefore, a high timeout is actually a good thing, @@ -272,8 +266,6 @@ static void init() { } xxpc_release(hello_reply); - atexit(inform_sud_of_clean_exit); - return; bad: ib_log("giving up on loading bundles for this process..."); |