if controll and data sockets are connect
daemon cannot finish correctly if phone display is off
next errors occurs
[ERR] (get_system_info):Failed to update system cpu data
[ERR] (samplingThread):Cannot get system info
Change-Id: Ic19127d3461434d81daa7c06ee1eee6d04d00398
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
goto END_EFD;
}
- //init all file descriptors
- init_system_file_descriptors();
// handler loop
while (1) {
close(manager.efd);
END_EVENT:
free(events);
- close_system_file_descriptors();
return return_value;
}
if (err)
return 1;
+ //init all file descriptors
+ init_system_file_descriptors();
//daemon work
//FIX ME remove samplingThread it is only for debug
//samplingThread(NULL);
LOGI("daemon loop finished\n");
stop_all();
finalizeManager();
+
+ close_system_file_descriptors();
+
LOGI("main finished\n");
return 0;
}