From a9f70db3c2ec9a0135f1d515f671dae2f476c392 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Sat, 29 Aug 2009 10:51:46 +0200 Subject: [PATCH] threads.d: the output from pthread_create() is not the thread handle. --- src/c/threads.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/threads.d b/src/c/threads.d index 775522b26..9719f70d4 100644 --- a/src/c/threads.d +++ b/src/c/threads.d @@ -338,7 +338,7 @@ mp_process_enable(cl_object process) FEerror("Cannot enable the running process ~A.", 1, process); process->process.parent = mp_current_process(); code = pthread_create(&process->process.thread, &pthreadattr, thread_entry_point, process); - output = (process->process.thread = code)? Cnil : process; + output = code? Cnil : process; #endif @(return output) }