Changeset 8630748 in mainline for uspace/srv/hid/display


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

Location:
uspace/srv/hid/display
Files:
2 edited

Legend:

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

    r62018a0 r8630748  
    121121                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server: %s.", str_error(rc));
    122122                rc = EEXIST;
     123                goto error;
    123124        }
    124125
  • 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.