Changeset 007e6efa in mainline for uspace/srv/loader/main.c
- Timestamp:
- 2011-01-28T15:44:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4db1fbf
- Parents:
- ae0300b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
rae0300b5 r007e6efa 95 95 96 96 /** Used to limit number of connections to one. */ 97 static bool connected ;97 static bool connected = false; 98 98 99 99 static void ldr_get_taskid(ipc_callid_t rid, ipc_call_t *request) … … 423 423 int main(int argc, char *argv[]) 424 424 { 425 task_id_t id; 426 int rc; 427 428 connected = false; 429 425 /* Set a handler of incomming connections. */ 426 async_set_client_connection(ldr_connection); 427 430 428 /* Introduce this task to the NS (give it our task ID). */ 431 id = task_get_id();432 rc = async_req_2_0(PHONE_NS, NS_ID_INTRO, LOWER32(id), UPPER32(id));429 task_id_t id = task_get_id(); 430 int rc = async_req_2_0(PHONE_NS, NS_ID_INTRO, LOWER32(id), UPPER32(id)); 433 431 if (rc != EOK) 434 432 return -1; 435 436 /* Set a handler of incomming connections. */437 async_set_client_connection(ldr_connection);438 433 439 434 /* Register at naming service. */ 440 if ( ipc_connect_to_me(PHONE_NS, SERVICE_LOAD, 0, 0, NULL, NULL) != 0)435 if (service_register(SERVICE_LOAD) != EOK) 441 436 return -2; 442 437 443 438 async_manager(); 444 439
Note:
See TracChangeset
for help on using the changeset viewer.