aboutsummaryrefslogtreecommitdiff
path: root/darwin-bootstrap/bundle-loader.c
diff options
context:
space:
mode:
authorcomex2015-07-12 16:42:48 -0400
committercomex2015-07-12 16:44:58 -0400
commit41aefc7572abb3c689774354231217aaafe0b01a (patch)
tree610f0f38f5880d4577ca19e9ddb1084dfb7177ec /darwin-bootstrap/bundle-loader.c
parenthow did that style violation get in there? must have been tired (diff)
downloadsubstitute-41aefc7572abb3c689774354231217aaafe0b01a.tar.gz
redo crash reporting - untested (but it compiles)
Diffstat (limited to 'darwin-bootstrap/bundle-loader.c')
-rw-r--r--darwin-bootstrap/bundle-loader.c10
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...");