Fixed bug that cleared main_loop in use 05/215605/1
authorINSUN PYO <insun.pyo@samsung.com>
Fri, 11 Oct 2019 08:59:59 +0000 (17:59 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Fri, 11 Oct 2019 08:59:59 +0000 (17:59 +0900)
commit30d6fa05f880cf097d6f51e371602b112f701df9
treee08a76c40d5e21863d73614f18fffd36fdb9f9f4
parent02f59e952eeb83ff355fa71653e00715b73a95e4
Fixed bug that cleared main_loop in use

The variable main_loop is global and it used in main loop.

Thread 1 (LWP 3049):
0  0xf6c75634 in raise () from /lib/libpthread.so.0
1  0xf6ff3774 in g_logv (log_domain=0xf6ff3774 <g_logv+772> "\300\377\377\352", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x0, args=...,
    args@entry=...) at gmessages.c:1357
2  0xf6ff3824 in g_log (log_domain=<optimized out>, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=0xf7043a7c "%s: assertion '%s' failed") at gmessages.c:1398
3  0xf6ff3dc0 in g_return_if_fail_warning (log_domain=<optimized out>, pretty_function=<optimized out>, expression=<optimized out>) at gmessages.c:2688
4  0xf736e286 in pims_ipc_svc_run_main_loop (main_loop=0x885c50 <main_loop>) at /usr/src/debug/pims-ipc-0.1.23/src/pims-ipc-svc.c:182
5  0x00822932 in __server_main () at /usr/src/debug/contacts-service-0.13.75/server/ctsvc_server.c:267
6  0x00822e8c in main (argc=3, argv=0xffd830d4) at /usr/src/debug/contacts-service-0.13.75/server/ctsvc_server.c:385

Change-Id: I97001ea3ed428dcfe6a11f37eb31922e0f905f43
server/ctsvc_server.c