Rev 4350 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4350 | Rev 4704 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | 72 | ||
73 | module_ref get_running_module( modules_ref modules, char * name ){ |
73 | module_ref get_running_module( modules_ref modules, char * name ){ |
74 | module_ref module; |
74 | module_ref module; |
75 | 75 | ||
76 | module = modules_find( modules, name, 0 ); |
76 | module = modules_find( modules, name, 0 ); |
77 | // TODO register the unknown one? |
- | |
78 | if( ! module ) return NULL; |
77 | if( ! module ) return NULL; |
79 | if( ! module->task_id ){ |
78 | if( ! module->task_id ){ |
80 | module->task_id = spawn( module->filename ); |
79 | module->task_id = spawn( module->filename ); |
81 | if( ! module->task_id ) return NULL; |
80 | if( ! module->task_id ) return NULL; |
82 | } |
81 | } |