summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ovs-thread.c2
-rw-r--r--tests/test-rcu.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/ovs-thread.c b/lib/ovs-thread.c
index eee8d9e45..aa0aab291 100644
--- a/lib/ovs-thread.c
+++ b/lib/ovs-thread.c
@@ -372,7 +372,6 @@ ovs_thread_create(const char *name, void *(*start)(void *), void *arg)
int error;
forbid_forking("multiple threads exist");
- multithreaded = true;
if (ovsthread_once_start(&once)) {
/* The first call to this function has to happen in the main thread.
@@ -389,6 +388,7 @@ ovs_thread_create(const char *name, void *(*start)(void *), void *arg)
ovsthread_once_done(&once);
}
+ multithreaded = true;
aux = xmalloc(sizeof *aux);
aux->start = start;
aux->arg = arg;
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