Changeset dda2602 in mainline for uspace/srv/locsrv/locsrv.c


Ignore:
Timestamp:
2019-08-03T09:41:07Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
dd5c623
Parents:
c0e4fc50
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-05-08 11:10:06)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-03 09:41:07)
Message:

sysman: Create units to start up to compositor

  • add necessary units to support basic GUI (barber, vterm)
  • lacking autostart is compensated with explicit dependencies
  • IPC_FLAG_AUTOSTART in compositor and locsrv fix
  • paths to v* binaries
  • refactored job closure creation

Conflicts:

boot/Makefile.common
uspace/app/vlaunch/vlaunch.c
uspace/srv/hid/compositor/compositor.c
uspace/srv/locsrv/locsrv.c

File:
1 edited

Legend:

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

    rc0e4fc50 rdda2602  
    359359        }
    360360
    361         printf("%s(%s) before\n", __func__, unit_name);
     361        //printf("%s(%s) before\n", __func__, unit_name);//DEBUG
    362362        int rc = sysman_unit_start(unit_name, IPC_FLAG_BLOCKING);
    363         printf("%s(%s) after %i\n", __func__, unit_name, rc);
     363        //printf("%s(%s) after %i\n", __func__, unit_name, rc);//DEBUG
    364364        free(unit_name);
    365365        free(service_name);
     
    566566        list_append(&service->server_services, &service->server->services);
    567567       
    568         printf("%s: broadcast new service '%s/%s'\n", NAME, namespace->name,
    569             service->name);
    570 
    571568        fibril_mutex_unlock(&service->server->services_mutex);
    572569        fibril_condvar_broadcast(&services_list_cv);
     
    801798        const loc_service_t *svc;
    802799        int flags = ipc_get_arg1(*icall);
     800        bool start_requested = false;
    803801       
    804802recheck:
     
    813811         */
    814812        if (svc == NULL) {
    815                 printf("%s: service '%s/%s' not found\n", NAME, ns_name, name);
     813                //printf("%s: service '%s/%s' not found\n", NAME, ns_name, name);//DEBUG
    816814                if (flags & (IPC_FLAG_AUTOSTART | IPC_FLAG_BLOCKING)) {
    817815                        /* TODO:
     
    821819                         * for ID might be someone else than those connecting)
    822820                         */
    823                         if (flags & IPC_FLAG_AUTOSTART) {
     821                        if (!start_requested && (flags & IPC_FLAG_AUTOSTART)) {
    824822                                rc = loc_service_request_start(ns_name, name);
    825823                                if (rc != EOK) {
    826824                                        goto finish;
    827825                                }
     826                                start_requested = true;
    828827                        }
    829828
     
    834833                rc = ENOENT;
    835834        } else {
    836                 printf("%s: service '%s/%s' FOUND\n", NAME, ns_name, name);
     835                //printf("%s: service '%s/%s' FOUND\n", NAME, ns_name, name);//DEBUG
    837836                rc = EOK;
    838837        }
Note: See TracChangeset for help on using the changeset viewer.