* limitations under the License.
*/
-#include <glib.h>
-#include <murphy/common/mainloop.h>
#include <murphy/common/glib-glue.h>
-#include <murphy/plugins/resource-native/libmurphy-resource/resource-api.h>
-
#include "lib/mm_resource_manager.h"
-#include "common/mm_resource_manager_utils.h"
+#include "daemon/mm_resource_manager_daemon_dbus.h"
#include "daemon/backend/murphy/mm_resource_manager_mloop.h"
static void __mm_resource_manager_mloop_state_callback(mrp_res_context_t *context,
*mrp = handle;
+ _mmrm_dmn_notify_fork_done();
+
MM_RM_INFO("Successfully performed mloop create");
return ret;
g_main_loop_unref(mrp->m_loop);
}
- MM_RM_DEBUG("Joining worker thread...");
- g_thread_join(mrp->worker);
- MM_RM_DEBUG("Joined to worker thread");
- mrp->worker = NULL;
+ if (mrp->worker) {
+ MM_RM_DEBUG("Joining worker thread...");
+ g_thread_join(mrp->worker);
+ mrp->worker = NULL;
+ MM_RM_DEBUG("Joined to worker thread");
+ }
g_mutex_unlock(&mrp->lock);