aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcomex2015-01-29 02:01:04 -0500
committercomex2015-01-29 02:01:04 -0500
commit6b1325174928d572e718b283a004b84ef8474cb3 (patch)
tree597fdc6897c8de76b19e5abc3c0c89cb1993dbfa /lib
parentmisc. fixes (diff)
downloadsubstitute-6b1325174928d572e718b283a004b84ef8474cb3.tar.gz
add SUBSTITUTE_DONT_STOP_THREADS for substrate compat - substrate doesn't do this, and they might not be on the main thread. though that would be gross.
Diffstat (limited to 'lib')
-rw-r--r--lib/darwin/substrate-compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/darwin/substrate-compat.c b/lib/darwin/substrate-compat.c
index 54bdd2e..2746795 100644
--- a/lib/darwin/substrate-compat.c
+++ b/lib/darwin/substrate-compat.c
@@ -43,7 +43,7 @@ EXPORT
void SubHookFunction(void *symbol, void *replace, void **result) __asm__("SubHookFunction");
void SubHookFunction(void *symbol, void *replace, void **result) {
struct substitute_function_hook hook = {symbol, replace, result};
- int ret = substitute_hook_functions(&hook, 1, 0);
+ int ret = substitute_hook_functions(&hook, 1, SUBSTITUTE_DONT_STOP_THREADS);
if (ret) {
panic("SubHookFunction: substitute_hook_functions returned %s\n",
substitute_strerror(ret));