Changeset dda2602 in mainline for uspace/srv/locsrv/locsrv.c
- Timestamp:
- 2019-08-03T09:41:07Z (5 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/locsrv.c
rc0e4fc50 rdda2602 359 359 } 360 360 361 printf("%s(%s) before\n", __func__, unit_name);361 //printf("%s(%s) before\n", __func__, unit_name);//DEBUG 362 362 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 364 364 free(unit_name); 365 365 free(service_name); … … 566 566 list_append(&service->server_services, &service->server->services); 567 567 568 printf("%s: broadcast new service '%s/%s'\n", NAME, namespace->name,569 service->name);570 571 568 fibril_mutex_unlock(&service->server->services_mutex); 572 569 fibril_condvar_broadcast(&services_list_cv); … … 801 798 const loc_service_t *svc; 802 799 int flags = ipc_get_arg1(*icall); 800 bool start_requested = false; 803 801 804 802 recheck: … … 813 811 */ 814 812 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 816 814 if (flags & (IPC_FLAG_AUTOSTART | IPC_FLAG_BLOCKING)) { 817 815 /* TODO: … … 821 819 * for ID might be someone else than those connecting) 822 820 */ 823 if ( flags & IPC_FLAG_AUTOSTART) {821 if (!start_requested && (flags & IPC_FLAG_AUTOSTART)) { 824 822 rc = loc_service_request_start(ns_name, name); 825 823 if (rc != EOK) { 826 824 goto finish; 827 825 } 826 start_requested = true; 828 827 } 829 828 … … 834 833 rc = ENOENT; 835 834 } 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 837 836 rc = EOK; 838 837 }
Note:
See TracChangeset
for help on using the changeset viewer.