Commit d77f5b33 authored by Magnus Blåudd's avatar Magnus Blåudd

Merge bug#42850 to 5.0

parents c5236fa3 cc8bc86b
...@@ -1406,7 +1406,7 @@ void show_diff(DYNAMIC_STRING* ds, ...@@ -1406,7 +1406,7 @@ void show_diff(DYNAMIC_STRING* ds,
else else
diff_name = 0; diff_name = 0;
#else #else
diff_name = "diff"; // Otherwise always assume it's called diff diff_name = "diff"; /* Otherwise always assume it's called diff */
#endif #endif
if (diff_name) if (diff_name)
......
...@@ -107,10 +107,11 @@ my_bool my_thread_global_init(void) ...@@ -107,10 +107,11 @@ my_bool my_thread_global_init(void)
pthread_attr_t dummy_thread_attr; pthread_attr_t dummy_thread_attr;
pthread_attr_init(&dummy_thread_attr); pthread_attr_init(&dummy_thread_attr);
pthread_attr_setdetachstate(&dummy_thread_attr, PTHREAD_CREATE_DETACHED); pthread_attr_setdetachstate(&dummy_thread_attr, PTHREAD_CREATE_JOINABLE);
pthread_create(&dummy_thread,&dummy_thread_attr, if (pthread_create(&dummy_thread,&dummy_thread_attr,
nptl_pthread_exit_hack_handler, NULL); nptl_pthread_exit_hack_handler, NULL) == 0)
(void)pthread_join(dummy_thread, NULL);
} }
#endif /* TARGET_OS_LINUX */ #endif /* TARGET_OS_LINUX */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment