--- rpl/src/gestion_objets.c 2010/08/12 14:13:57 1.35 +++ rpl/src/gestion_objets.c 2010/08/13 21:00:37 1.36 @@ -3980,6 +3980,16 @@ debug_fork() pthread_mutex_lock(&mutex_allocation); pid = fork(); +# ifdef OS2 + if (pid == 0) + { + sem_init(&semaphore_liste_threads, 0, 1); + sem_init(&semaphore_gestionnaires_signaux, 0, 0); + sem_init(&semaphore_gestionnaires_signaux_atomique, 0, 1); + sem_init(&((*s_etat_processus).semaphore_fork), 0, 0); + } +# endif + if (pid == 0) { pthread_mutex_destroy(&mutex_allocation);