g_timeout_add_seconds register timer callback with G_PRIORITY_DEFAULT(0),
but g_idler_add with G_PRIORITY_DEFAULT_IDLE(200).
We need to ensure that the queue_job() invoked before exit_server().
Change-Id: I1cbb3d198cd2ced4def64924abe10c97922a3fd7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
g_io_channel_set_buffered(sio, FALSE);
swid = g_io_add_watch(sio, G_IO_IN, __signal_handler, NULL);
- g_timeout_add_seconds(2, exit_server, NULL);
+ g_timeout_add_seconds_full(G_PRIORITY_LOW, 2, exit_server, NULL, NULL);
return 0;
}