Changeset 1be7bee in mainline for uspace/srv/loader/main.c
- Timestamp:
- 2019-08-07T04:20:30Z (6 years ago)
- Children:
- 70d28e8
- Parents:
- fe86d9d
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-10-05 21:17:40)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 04:20:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
rfe86d9d r1be7bee 84 84 static async_sess_t *session_primary = NULL; 85 85 86 /** Session to taskman (typically our spawner) */ 87 static async_sess_t *session_taskman = NULL; 88 86 89 /** Current working directory */ 87 90 static char *cwd = NULL; … … 335 338 336 339 pcb.session_primary = session_primary; 340 pcb.session_taskman = session_taskman; 337 341 338 342 pcb.cwd = cwd; … … 452 456 } 453 457 458 /** Handshake with taskman 459 * 460 * Taskman is our spawn parent, i.e. PHONE_INITIAL is connected to it. 461 * Goal of the handshake is to obtain phone to naming service and also keep the 462 * session to taskman. 463 * 464 * @return EOK on success, for errors see taskman_handshake() 465 */ 454 466 static errno_t ldr_taskman_handshake(void) 455 467 { 468 assert(session_primary == NULL); 469 assert(session_taskman == NULL); 470 456 471 errno_t retval = EOK; 457 472 … … 463 478 } 464 479 465 async_sess_t *session_tm = async_session_primary_swap(session_primary); 466 (void)async_hangup(session_tm); 480 session_taskman = async_session_primary_swap(session_primary); 467 481 468 482 handshake_complete = true;
Note:
See TracChangeset
for help on using the changeset viewer.