Changeset f230cbd in mainline for uspace/srv/loader/main.c


Ignore:
Timestamp:
2018-10-29T17:56:19Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
8b6cd5c
Parents:
6fc4a32
Message:

Wait for the hangup in ldr_run

We cannot leave any phones open and calls unanswered when leaving
ldr_connection via ldr_run. The parent phone still contains a
valid label, but the fibril won't be able to receive any further
messages for that label.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r6fc4a32 rf230cbd  
    341341        async_answer_0(req, EOK);
    342342
     343        /*
     344         * Wait for the hangup from the other side in order not to leave any
     345         * unanswered IPC_M_PHONE_HUNGUP messages behind.
     346         */
     347        async_get_call(req);
     348        assert(!IPC_GET_IMETHOD(*req));
     349        async_answer_0(req, EOK);
     350
    343351        DPRINTF("Jump to entry point at %p\n", pcb.entry);
    344352
Note: See TracChangeset for help on using the changeset viewer.