Changeset 623 for trunk/user/init
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/init/init.c
r588 r623 26 26 // and avoid the hard_config include [AG] 27 27 28 // TODO introduce a communication channel between INIT and KSH29 // to allow KSH to signal INIT the exec completion.30 31 28 //////////////// 32 29 int main( void ) … … 40 37 41 38 #if DEBUG_PROCESS_INIT 42 display_string("[ INIT] process enters");39 display_string("[init] process enters"); 43 40 #endif 44 41 … … 59 56 { 60 57 // INIT display error message 61 snprintf( string , 64 , "[ INITERROR] cannot fork child[%d] => suicide" , i );58 snprintf( string , 64 , "[init ERROR] cannot fork child[%d] => suicide" , i ); 62 59 display_string( string ); 63 60 … … 74 71 // CHILD[i] display error message 75 72 snprintf( string , 64 , 76 "[ INITERROR] CHILD[%d] cannot exec KSH / ret_exec = %d" , i , ret_exec );73 "[init ERROR] CHILD[%d] cannot exec KSH / ret_exec = %d" , i , ret_exec ); 77 74 display_string( string ); 78 75 } … … 81 78 { 82 79 // INIT display CHILD[i] process PID 83 snprintf( string , 64 , "[ INIT] created KSH[%d] / pid = %x", i , ret_fork );80 snprintf( string , 64 , "[init] created KSH[%d] / pid = %x", i , ret_fork ); 84 81 display_string( string ); 85 82 … … 128 125 { 129 126 // display string to report unexpected KSH process block 130 snprintf( string , 64 , "[ INIT] KSH process %x stopped => unblock it" , rcv_pid );127 snprintf( string , 64 , "[init] KSH process %x stopped => unblock it" , rcv_pid ); 131 128 display_string( string ); 132 129 … … 138 135 { 139 136 // display string to report KSH process termination 140 snprintf( string , 64 , "[ INIT] KSH process %x terminated => recreate", rcv_pid );137 snprintf( string , 64 , "[init] KSH process %x terminated => recreate", rcv_pid ); 141 138 display_string( string ); 142 139 … … 147 144 { 148 145 // INIT display error message 149 snprintf( string , 64 , "[ INITERROR] cannot fork child => suicide");146 snprintf( string , 64 , "[init ERROR] cannot fork child => suicide"); 150 147 display_string( string ); 151 148 … … 161 158 { 162 159 // CHILD display error message on TXT0 terminal 163 snprintf( string , 64 , "[ INITERROR] CHILD cannot exec KSH" );160 snprintf( string , 64 , "[init ERROR] CHILD cannot exec KSH" ); 164 161 display_string( string ); 165 162 } … … 168 165 { 169 166 // INIT display new KSH process PID 170 snprintf( string , 64 , "[ INIT] re-created KSH / pid = %x", ret_fork );167 snprintf( string , 64 , "[init] re-created KSH / pid = %x", ret_fork ); 171 168 display_string( string ); 172 169 }
Note: See TracChangeset
for help on using the changeset viewer.