Changeset 637 for trunk/kernel/syscalls/sys_wait.c
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_wait.c
r635 r637 53 53 pid_t pid = process->pid; 54 54 55 55 56 #if DEBUG_SYS_WAIT 56 uint64_t 57 uint64_t cycle = hal_get_cycles(); 57 58 if( DEBUG_SYS_WAIT < cycle ) 58 59 printk("\n[%s] thread[%x,%x] enter / cycle %d\n", … … 153 154 #endif 154 155 // return child termination state to parent process 155 hal_copy_to_uspace( local_cxy, 156 &child_state, 157 status, 156 hal_copy_to_uspace( status, 157 XPTR( local_cxy , &child_state ), 158 158 sizeof(int) ); 159 159 return child_pid; … … 192 192 193 193 // never executed 194 return -1;194 return 0; 195 195 196 196 } // end sys_wait()
Note: See TracChangeset
for help on using the changeset viewer.