Changeset bb57a00 in mainline


Ignore:
Timestamp:
2019-08-07T11:17:11Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
4ff66ae
Parents:
4667b5c
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-13 01:57:56)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 11:17:11)
Message:

sysman: Awareness of boot time tasks as anonymous services

  • sysman calls taskman_dump_events
  • boot time tasks (servers) correctly set their retval

Conflicts:

uspace/srv/ns/ns.c

Location:
uspace/srv
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/rd/rd.c

    r4667b5c rbb57a00  
    218218
    219219        printf("%s: Accepting connections\n", NAME);
     220        task_retval(0);
    220221        async_manager();
    221222
  • uspace/srv/locsrv/locsrv.c

    r4667b5c rbb57a00  
    16781678
    16791679        printf("%s: Accepting connections\n", NAME);
     1680        task_retval(0);
    16801681        async_manager();
    16811682
  • uspace/srv/ns/ns.c

    r4667b5c rbb57a00  
    130130
    131131        printf("%s: Accepting connections\n", NAME);
     132        // TODO enable NS to use task_retval(0)
    132133        async_manager();
    133134
  • uspace/srv/sysman/main.c

    r4667b5c rbb57a00  
    3636#include <stdio.h>
    3737#include <str.h>
     38#include <taskman.h>
    3839
    3940#include "repo.h"
     
    204205int main(int argc, char *argv[])
    205206{
     207        async_set_client_connection(sysman_connection);
    206208        printf(NAME ": HelenOS system daemon\n");
    207209
     
    235237        async_usleep(1 * 1000000);
    236238        sysman_log(LVL_DEBUG, "Debugging pause ended.\n");
    237         /* Queue first job from sequence */
    238         prepare_and_run_job(&target_sequence[0]);
    239239
    240240        /* We're service too */
     
    246246        }
    247247
     248        /* We're almost ready, scan for boot time tasks */
     249        rc = taskman_dump_events();
     250        if (rc != EOK) {
     251                sysman_log(LVL_FATAL,
     252                    "Cannot scan boot time tasks (%i).", rc);
     253                return rc;
     254        }
     255
     256        /* Queue first job from sequence */
     257        prepare_and_run_job(&target_sequence[0]);
     258
    248259        /* Start sysman server */
    249         async_set_client_connection(sysman_connection);
    250260
    251261        printf(NAME ": Accepting connections\n");
     262        task_retval(0);
    252263        async_manager();
    253264
  • uspace/srv/vfs/vfs.c

    r4667b5c rbb57a00  
    160160         */
    161161        printf("%s: Accepting connections\n", NAME);
     162        task_retval(0);
    162163        async_manager();
    163164        return 0;
Note: See TracChangeset for help on using the changeset viewer.