diff options
author | Ilho Kim <ilho159.kim@samsung.com> | 2024-04-15 13:43:53 +0900 |
---|---|---|
committer | Ilho Kim <ilho159.kim@samsung.com> | 2024-04-15 13:43:53 +0900 |
commit | 8dbd9cd7bd32ca491d98aa7fb4a50c9d2f78af17 (patch) | |
tree | 768267aa21aad4c0913bb30a3aa6e67736697ee7 | |
parent | 23b53995fde52a12203a94627f13d6eef1fd5170 (diff) | |
download | pkgmgr-server-8dbd9cd7bd32ca491d98aa7fb4a50c9d2f78af17.tar.gz pkgmgr-server-8dbd9cd7bd32ca491d98aa7fb4a50c9d2f78af17.tar.bz2 pkgmgr-server-8dbd9cd7bd32ca491d98aa7fb4a50c9d2f78af17.zip |
Increase timeout for exit server to 15 seconds
Change-Id: If8d35aced5476bc32e9ddeaefa10573f2398c4d0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
-rwxr-xr-x | src/pkgmgr/server/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkgmgr/server/mod.rs b/src/pkgmgr/server/mod.rs index 809da1d..ff4a0d6 100755 --- a/src/pkgmgr/server/mod.rs +++ b/src/pkgmgr/server/mod.rs @@ -30,6 +30,7 @@ use self::glib_sys::*; use std::rc::Rc; const SD_LISTEN_FDS_START: i32 = 3; +const PKGMGR_SERVER_TIMEOUT: c_uint = 15; #[link(name = "aul")] extern "C" { @@ -151,7 +152,7 @@ impl Server { } mut_server.timer = g_timeout_add_seconds_full( - G_PRIORITY_LOW, 5, Some(exit_server), + G_PRIORITY_LOW, PKGMGR_SERVER_TIMEOUT, Some(exit_server), server as *const _ as *mut c_void, None); } } |