Changeset 437 for trunk/user/init
- Timestamp:
- Mar 28, 2018, 2:40:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/init/init.c
r436 r437 41 41 if( ret_fork < 0 ) // error in fork 42 42 { 43 // INIT display error message on TXT0 terminal44 snprintf( string , 64 , "INIT cannot fork child[%d] " , i );43 // INIT display error message 44 snprintf( string , 64 , "INIT cannot fork child[%d] => suicide" , i ); 45 45 display_string( string ); 46 46 … … 55 55 if ( ret_exec ) // error in exec 56 56 { 57 // CHILD[i] display error message on TXT0 terminal57 // CHILD[i] display error message 58 58 snprintf( string , 64 , 59 59 "CHILD[%d] cannot exec KSH[%d] / ret_exec = %d" , i , i , ret_exec ); … … 68 68 } 69 69 } 70 71 // display processes and threads in clusters 0 & 1 72 display_cluster_processes( 0 ); 73 display_sched( 0 , 0 ); 74 display_cluster_processes( 1 ); 75 display_sched( 1 , 0 ); 70 76 71 77 // This loop detects the termination of the KSH[i] processes, … … 88 94 if( WIFSIGNALED( status ) || WIFEXITED( status ) ) // killed => recreate it 89 95 { 90 // display string to report unexpectedKSH process termination96 // display string to report KSH process termination 91 97 snprintf( string , 64 , "KSH process %x terminated => recreate KSH", rcv_pid ); 92 98 display_string( string ); … … 97 103 if( ret_fork < 0 ) // error in fork 98 104 { 99 // INIT display error message on TXT0 terminal100 snprintf( string , 64 , "INIT cannot fork child ");105 // INIT display error message 106 snprintf( string , 64 , "INIT cannot fork child => suicide"); 101 107 display_string( string ); 102 108
Note: See TracChangeset
for help on using the changeset viewer.