From 27f7ceab7d66e876ff65be6f7d7bcb0c350f7c89 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 19 Dec 2016 18:59:47 -0500 Subject: [PATCH] Pass thread attr to pthread_create() --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index 2523a314..8b0e5084 100644 --- a/runtime.c +++ b/runtime.c @@ -4768,7 +4768,7 @@ to look at the lock-free structures provided by ck? pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); - if (pthread_create(&thread, NULL, Cyc_init_thread, thread_and_thunk)) { + if (pthread_create(&thread, &attr, Cyc_init_thread, thread_and_thunk)) { fprintf(stderr, "Error creating a new thread\n"); exit(1); }