Review request for OpenLMI Developers.
By Michal Minar.
Updated Čec. 3, 2014, 9:09 dop.
Repository:
openlmi-providers
Description
jobmanager: fix job registration
Any call to jobmgr_register_job_type() needs to be ignored once the job
manager is initialized. It's wrong to assume that this function won't
ever be called after the jobmgr_init() because there may be several
providers doing following sequence in single provider library during its
initialization:
1. lmi_init()
2. jobmgr_register_job_type()
3. jobmgr_init()
|
Diffs
- src/libs/jobmanager/job_manager.h (041096a7450f663b84c0cead5d649537aabf5224)
- src/libs/jobmanager/job_manager.c (2d1f55b6d37490bd69e17a2504e02b9d5d5855bd)
View Diff
|