Changeset 8432ae1 in mainline for uspace/srv/sysman/main.c


Ignore:
Timestamp:
2019-08-03T08:33:31Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
4b1c6a4b
Parents:
095d03c
git-author:
Michal Koutny <xm.koutny+hos@…> (2015-04-25 00:29:51)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-03 08:33:31)
Message:

sysman: Correct reference counting of jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/main.c

    r095d03c r8432ae1  
    149149
    150150        /* Queue first job for processing */
     151        job_add_ref(first_job);
    151152        sysman_object_observer(first_job, &first_job_handler, NULL);
     153        job_add_ref(first_job);
    152154        sysman_raise_event(&sysman_event_job_process, first_job);
     155       
     156        /*
     157         * Releasing our own reference (could be merged with previous add_ref,
     158         * this is more explicit though.
     159         */
     160        job_del_ref(&first_job);
    153161
    154162        /* Start sysman server */
Note: See TracChangeset for help on using the changeset viewer.