Changeset c7bbd8f8 in mainline


Ignore:
Timestamp:
2009-03-02T17:26:47Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
97c9da8
Parents:
926d6ca
Message:

blocking connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/devmap/devmap1.c

    r926d6ca rc7bbd8f8  
    133133        ipcarg_t callback_phonehash;
    134134
    135         phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAP, DEVMAP_DRIVER, 0);
    136 
    137         while (phone < 0) {
    138                 usleep(100000);
    139                 phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAP,
    140                     DEVMAP_DRIVER, 0);
     135        phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_DEVMAP, DEVMAP_DRIVER, 0);
     136        if (phone < 0) {
     137                printf("Failed to connect to device mapper\n");
     138                return -1;
    141139        }
    142140       
Note: See TracChangeset for help on using the changeset viewer.