Changeset 588 for trunk/user/init


Ignore:
Timestamp:
Nov 1, 2018, 12:44:35 PM (4 years ago)
Author:
alain
Message:

Introduce a signal based synchro between INIT and KSH processes
to sequencialize multiple KSH[i] processes creation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/init/init.c

    r581 r588  
    2121#include <sys/wait.h>
    2222
    23 #define DEBUG_PROCESS_INIT    1
     23#define DEBUG_PROCESS_INIT    0
    2424
    2525// TODO improve the get_config() syscall to return nb_txt_channels
     
    8383            snprintf( string , 64 , "[INIT] created KSH[%d] / pid = %x", i , ret_fork );
    8484            display_string( string );
     85
     86            // wait signal from KSH[i]
     87            pause();
    8588        }
    8689    }
     
    102105    for( x = 0 ; x < x_size ; x++ )
    103106    {
    104         for( y = 0 ; y < x_size ; y++ )
     107        for( y = 0 ; y < y_size ; y++ )
    105108        {
    106109            cxy = HAL_CXY_FROM_XY( x , y );
Note: See TracChangeset for help on using the changeset viewer.