Changeset 430afff in mainline for uspace/srv/rd/rd.c


Ignore:
Timestamp:
2009-03-02T17:33:01Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
13ec8055
Parents:
4904de8
Message:

blocking connection to device mapper

File:
1 edited

Legend:

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

    r4904de8 r430afff  
    189189        ipcarg_t callback_phonehash;
    190190
    191         phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAP, DEVMAP_DRIVER, 0);
    192 
    193         while (phone < 0) {
    194                 usleep(10000);
    195                 phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAP,
    196                     DEVMAP_DRIVER, 0);
     191        phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_DEVMAP, DEVMAP_DRIVER, 0);
     192        if (phone < 0) {
     193                printf(NAME ": Failed to connect to device mapper\n");
     194                return -1;
    197195        }
    198196       
Note: See TracChangeset for help on using the changeset viewer.