Changeset faf19d4 in mainline


Ignore:
Timestamp:
2018-10-31T06:03:38Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f7134b
Parents:
82cd2e0
git-author:
Jakub Jermar <jakub@…> (2018-10-29 17:56:19)
git-committer:
Jakub Jermar <jakub@…> (2018-10-31 06:03:38)
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

    r82cd2e0 rfaf19d4  
    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.