From 1b870ac0ca7d9e7a4de307fce480d915e69d3c6e Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Fri, 17 Jun 2016 15:41:26 -0700 Subject: lib: Remove extra API dependency for ovs_thread_create() When calling ovs_thread_create() without calling fatal_signal_init() first, ovs_thread_create() some times asserts. This dependency is subtle and not very obvious. The root cause seems to be that, within ovs_thread_create(), the multi-threaded state is declared before all initializations are done. Signed-off-by: Andy Zhou Acked-by: Ben Pfaff --- tests/test-rcu.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/test-rcu.c') diff --git a/tests/test-rcu.c b/tests/test-rcu.c index e66367e83..965f3c49f 100644 --- a/tests/test-rcu.c +++ b/tests/test-rcu.c @@ -39,7 +39,6 @@ test_rcu_quiesce(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) { pthread_t quiescer; - fatal_signal_init(); quiescer = ovs_thread_create("quiescer", quiescer_main, NULL); /* This is the main thread of the process. After spawning its first -- cgit v1.2.1