threads.d: the output from pthread_create() is not the thread handle.

This commit is contained in:
Juan Jose Garcia Ripoll 2009-08-29 10:51:46 +02:00
parent 9e6343bfe9
commit a9f70db3c2

View file

@ -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)
}