--- rpl/src/instructions_s10.c 2011/11/26 10:01:31 1.51 +++ rpl/src/instructions_s10.c 2012/01/05 10:19:04 1.53 @@ -1,7 +1,7 @@ /* ================================================================================ RPL/2 (R) version 4.1.5 - Copyright (C) 1989-2011 Dr. BERTRAND Joël + Copyright (C) 1989-2012 Dr. BERTRAND Joël This file is part of RPL/2. @@ -45,7 +45,6 @@ instruction_spawn(struct_processus *s_et pthread_mutexattr_t attributs_mutex; - pthread_t thread_id; pthread_t thread_surveillance; struct_descripteur_thread *s_argument_thread; @@ -415,8 +414,8 @@ instruction_spawn(struct_processus *s_et (*s_argument_thread).thread_actif = d_faux; - if (pthread_create(&thread_id, &attributs, lancement_thread, - s_argument_thread) != 0) + if (pthread_create(&(*s_nouvel_etat_processus).tid, + &attributs, lancement_thread, s_argument_thread) != 0) { (*s_etat_processus).erreur_systeme = d_es_processus; return;