Changes in uspace/srv/bd/rd/rd.c [47b7006:79ae36dd] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/rd/rd.c

    r47b7006 r79ae36dd  
    123123        while (true) {
    124124                callid = async_get_call(&call);
    125                 switch (IPC_GET_IMETHOD(call)) {
    126                 case IPC_M_PHONE_HUNGUP:
     125               
     126                if (!IPC_GET_IMETHOD(call)) {
    127127                        /*
    128128                         * The other side has hung up.
    129                          * Answer the message and exit the fibril.
     129                         * Exit the fibril.
    130130                         */
    131131                        async_answer_0(callid, EOK);
    132132                        return;
     133                }
     134               
     135                switch (IPC_GET_IMETHOD(call)) {
    133136                case BD_READ_BLOCKS:
    134137                        ba = MERGE_LOUP32(IPC_GET_ARG1(call),
     
    243246                return false;
    244247        }
    245 
     248       
    246249        fibril_rwlock_initialize(&rd_lock);
    247250       
     
    258261        printf("%s: Accepting connections\n", NAME);
    259262        async_manager();
    260 
     263       
    261264        /* Never reached */
    262265        return 0;
Note: See TracChangeset for help on using the changeset viewer.