Changeset 437 for trunk/kernel/kern/process.c
- Timestamp:
- Mar 28, 2018, 2:40:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/process.c
r436 r437 366 366 xptr_t children_lock_xp; 367 367 368 pid_t pid = process->pid; 369 368 370 assert( (process->th_nr == 0) , __FUNCTION__ , 369 "process %x in cluster %x has still active threads", p rocess->pid , local_cxy );371 "process %x in cluster %x has still active threads", pid , local_cxy ); 370 372 371 373 #if CONFIG_DEBUG_PROCESS_DESTROY … … 373 375 if( CONFIG_DEBUG_PROCESS_DESTROY ) 374 376 printk("\n[DBG] %s : thread %x enter to destroy process %x (pid = %x) / cycle %d\n", 375 __FUNCTION__ , CURRENT_THREAD , process, process->pid , cycle ); 377 __FUNCTION__ , CURRENT_THREAD , process, pid , cycle ); 378 #endif 379 380 #if CONFIG_DEBUG_PROCESS_DESTROY 381 if( CONFIG_DEBUG_PROCESS_DESTROY & 1 ) 382 cluster_processes_display( CXY_FROM_PID( pid ) ); 376 383 #endif 377 384 … … 383 390 384 391 // remove process from children_list if process is in owner cluster 385 if( CXY_FROM_PID( p rocess->pid ) == local_cxy )392 if( CXY_FROM_PID( pid ) == local_cxy ) 386 393 { 387 394 // get pointers on parent process … … 400 407 401 408 // release the process PID to cluster manager 402 cluster_pid_release( p rocess->pid );409 cluster_pid_release( pid ); 403 410 404 411 // FIXME close all open files and update dirty [AG] … … 419 426 if( CONFIG_DEBUG_PROCESS_DESTROY ) 420 427 printk("\n[DBG] %s : thread %x exit / destroyed process %x (pid = %x) / cycle %d\n", 421 __FUNCTION__ , CURRENT_THREAD , process, p rocess->pid, cycle );428 __FUNCTION__ , CURRENT_THREAD , process, pid, cycle ); 422 429 #endif 423 430
Note: See TracChangeset
for help on using the changeset viewer.