Changeset 8630748 in mainline for uspace/srv/hid/display/output.c


Ignore:
Timestamp:
2020-06-24T22:43:00Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78445be8
Parents:
62018a0
Message:

Handle attempt to launch second display server gracefully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/output.c

    r62018a0 r8630748  
    163163        fibril_mutex_unlock(&output->lock);
    164164
     165        /* Fail if we did not open at least one device */
     166        if (list_empty(&output->ddevs)) {
     167                log_msg(LOG_DEFAULT, LVL_ERROR, "No output device found.");
     168                return ENOENT;
     169        }
     170
    165171        return rc;
    166172}
Note: See TracChangeset for help on using the changeset viewer.