From d3ead52a842ada81889577a7aa68e98e3bb87e54 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 14 Dec 2017 09:42:32 +0300 Subject: [PATCH] Do not call set_handle_fork(1) in gctest if pthread_atfork not supported * tests/test.c [!NO_TEST_HANDLE_FORK && HANDLE_FORK] (INIT_FORK_SUPPORT): Do not define to GC_set_handle_fork(1) unless CAN_CALL_ATFORK. --- tests/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.c b/tests/test.c index 7fa6f4f2..e623cf9c 100644 --- a/tests/test.c +++ b/tests/test.c @@ -105,7 +105,7 @@ # include # include # include -# ifdef HANDLE_FORK +# if defined(HANDLE_FORK) && defined(CAN_CALL_ATFORK) # define INIT_FORK_SUPPORT GC_set_handle_fork(1) /* Causes abort in GC_init on pthread_atfork failure. */ # elif !defined(TEST_FORK_WITHOUT_ATFORK) -- 2.40.0