Fix for potential case of falling into infinite loop when pop queue 23/34723/2 accepted/tizen_3.0.2014.q4_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common accepted/tizen/3.0.2014.q4/common/20150302.111434 accepted/tizen/common/20150302.092812 accepted/tizen/mobile/20150313.083938 accepted/tizen/tv/20150213.093520 accepted/tizen/tv/20150313.083820 accepted/tizen/wearable/20150313.083851 submit/tizen/20150304.022845 submit/tizen_3.0.2014.q4_common/20150302.104050 submit/tizen_common/20150226.010729 submit/tizen_common/20150302.085223 submit/tizen_mobile/20150313.022842 submit/tizen_tv/20150213.071702 submit/tizen_tv/20150313.022842 submit/tizen_wearable/20150313.022842
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 2 Feb 2015 02:29:35 +0000 (11:29 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 2 Feb 2015 02:32:45 +0000 (18:32 -0800)
commitcc62763ac7ffa287b0e5b22de3d2e678f3545504
tree2a249ef5dbdc66d991a8f3b1b478ebbcbcecb199
parent9786311f87c0e841e1156bde1212b30b56454354
Fix for potential case of falling into infinite loop when pop queue

TC-2402

if backend's process takes very long times, the client who requests
something to server will get timeout because the server cannot receive
the request from client because it is busy for looping on queue_job

when received dbus request, add idler to handle it at the next event
loop iteration
(replace direct call of queue_job with add an idler)
and add again when backend exit to handle next queued request

remove unwanted local variable initializing

Change-Id: I854b0b90356d9d875951b053e2c090eae1192a6b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
server/src/pkgmgr-server.c