Changeset ab8e0f5 in mainline


Ignore:
Timestamp:
2017-12-22T11:17:43Z (6 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2986763
Parents:
119a794
Message:

tmon: fix hang when device handle does not exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/resolve.c

    r119a794 rab8e0f5  
    8282{
    8383        int rc;
    84         service_id_t svc;
    85         if ((rc = loc_service_get_id(dev_path, &svc, IPC_FLAG_BLOCKING))) {
    86                 printf(NAME ": Error resolving device. %s\n", str_error(rc));
    87                 return rc;
    88         }
    89 
    90         if ((rc = devman_fun_sid_to_handle(svc, fun))) {
    91                 printf(NAME ": Error resolving handle of device with SID %ld.\n", svc);
     84        if ((rc = devman_fun_get_handle(dev_path, fun, 0))) {
     85                printf(NAME ": Error resolving handle of device - %s.\n", str_error(rc));
    9286                return rc;
    9387        }
Note: See TracChangeset for help on using the changeset viewer.