From 6b1325174928d572e718b283a004b84ef8474cb3 Mon Sep 17 00:00:00 2001 From: comex Date: Thu, 29 Jan 2015 02:01:04 -0500 Subject: 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. --- lib/darwin/substrate-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/darwin') 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)); -- cgit v1.2.3