Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e326edc in mainline


Ignore:
Timestamp:
2010-02-18T10:33:07Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
c7315dd
Parents:
ca2d142
Message:

Do not sleep after spawning a task for a networking module.

Location:
uspace/srv/net
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/start/netstart.c

    rca2d142 re326edc  
    101101        task_id_t       res;
    102102
    103 //      printf( "Spawning %s\n", fname );
    104103        argv[ 0 ] = fname;
    105104        argv[ 1 ] = NULL;
    106105        res = task_spawn( fname, argv );
    107         if( res != 0 ){
    108                 /* Success */
    109                 usleep( 50000 );
    110         }
     106       
    111107        return res;
    112108}
  • uspace/srv/net/structures/module_map.c

    rca2d142 re326edc  
    8888task_id_t spawn( char * fname ){
    8989        char * argv[ 2 ];
    90 //      char * argv[ 4 ];
    9190        task_id_t       res;
    9291
    93 //      printf( "Spawning %s\n", fname );
    9492        argv[ 0 ] = fname;
    9593        argv[ 1 ] = NULL;
    9694        res = task_spawn( fname, argv );
    97 /*      argv[ 0 ] = "/app/trace";
    98         argv[ 1 ] = "+ti";
    99         argv[ 2 ] = fname;
    100         argv[ 3 ] = NULL;
    101         res = task_spawn( "/app/trace", argv );
    102 */
    103         if( res != 0 ){
    104                 /* Success */
    105                 usleep( 10000 );
    106         }
     95
    10796        return res;
    10897}
Note: See TracChangeset for help on using the changeset viewer.