Changeset 5d96851 in mainline for uspace/srv/loader/main.c
- Timestamp:
- 2009-07-06T19:17:49Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0315679
- Parents:
- 7114d83
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
r7114d83 r5d96851 53 53 #include <ipc/services.h> 54 54 #include <ipc/loader.h> 55 #include <ipc/ns.h> 56 #include <macros.h> 55 57 #include <loader/pcb.h> 56 58 #include <errno.h> … … 438 440 { 439 441 ipcarg_t phonead; 440 442 task_id_t id; 443 int rc; 444 441 445 connected = false; 442 446 447 /* Introduce this task to the NS (give it our task ID). */ 448 id = task_get_id(); 449 rc = async_req_2_0(PHONE_NS, NS_ID_INTRO, LOWER32(id), UPPER32(id)); 450 if (rc != EOK) 451 return -1; 452 443 453 /* Set a handler of incomming connections. */ 444 454 async_set_client_connection(ldr_connection); … … 446 456 /* Register at naming service. */ 447 457 if (ipc_connect_to_me(PHONE_NS, SERVICE_LOAD, 0, 0, &phonead) != 0) 448 return - 1;449 458 return -2; 459 450 460 async_manager(); 451 461
Note:
See TracChangeset
for help on using the changeset viewer.