Ignore:
Timestamp:
Jun 29, 2017, 4:44:52 PM (5 years ago)
Author:
alain
Message:

euh...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_exec.c

    r53 r101  
    225225                 " / target_cluster = %x / cycle %d\n",
    226226                 __FUNCTION__, process->pid , CURRENT_CORE->lid,
    227                  cxy_client, cxy_server, hal_time_stamp());
    228 
    229     // initialize exec_info structure
    230     exec_info.pid         = process->pid;
    231     exec_info.ppid        = process->ppid;
    232     exec_info.fd_array_xp = XPTR( local_cxy , &process->fd_array );
    233     exec_info.vfs_root_xp = process->vfs_root_xp;
    234     exec_info.vfs_cwd_xp  = process->vfs_cwd_xp;
    235     exec_info.vfs_bin_xp  = process->vfs_bin_xp;
     227                 cxy_client, cxy_server, hal_get_cycles());
     228
     229    // register reference parent process in exec_info
     230    exec_info.parent_xp   = process->ref_xp;
    236231
    237232        // check pathname and store it in exec_info structure
     
    266261       
    267262    exec_dmsg("\n[INFO] %s starts exec for process %x at cycle %d\n",
    268               __FUNCTION__, process->pid, hal_time_stamp() );
     263              __FUNCTION__, process->pid, hal_get_cycles() );
    269264
    270265    if( is_local )  error = process_make_exec( &exec_info );
     
    280275
    281276    exec_dmsg("\n[INFO] %s completes exec for process %x at cycle %d\n",
    282               __FUNCTION__, process->pid , hal_time_stamp() );
     277              __FUNCTION__, process->pid , hal_get_cycles() );
    283278
    284279    // delete the calling thread an process
Note: See TracChangeset for help on using the changeset viewer.