Changes in uspace/srv/net/modules.c [bc9da2a:7fb2ce3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/modules.c
rbc9da2a r7fb2ce3 55 55 56 56 int connect_to_service_timeout( services_t need, suseconds_t timeout ){ 57 i f (timeout <= 0)58 return async_connect_me_to_blocking( PHONE_NS, need, 0, 0);59 57 ipcarg_t phone; 58 int res; 59 60 60 while( true ){ 61 int phone; 62 63 phone = async_connect_me_to( PHONE_NS, need, 0, 0); 64 if( (phone >= 0) || (phone != ENOENT) ) 61 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, & phone ); 62 if( res >= 0 ){ 65 63 return phone; 66 67 timeout -= MODULE_WAIT_TIME; 68 if( timeout <= 0 ) return ETIMEOUT; 69 64 } 65 if( timeout > 0 ){ 66 timeout -= MODULE_WAIT_TIME; 67 if( timeout <= 0 ) return ETIMEOUT; 68 } 70 69 usleep( MODULE_WAIT_TIME ); 71 70 } … … 85 84 if( phone >= 0 ){ 86 85 if( ERROR_OCCURRED( ipc_connect_to_me( phone, arg1, arg2, arg3, & phonehash ))){ 87 ipc_hangup( phone);86 async_msg_0( phone, IPC_M_PHONE_HUNGUP ); 88 87 return ERROR_CODE; 89 88 }
Note:
See TracChangeset
for help on using the changeset viewer.