From 8dbd9cd7bd32ca491d98aa7fb4a50c9d2f78af17 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Mon, 15 Apr 2024 13:43:53 +0900 Subject: Increase timeout for exit server to 15 seconds Change-Id: If8d35aced5476bc32e9ddeaefa10573f2398c4d0 Signed-off-by: Ilho Kim --- src/pkgmgr/server/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- cgit v1.2.3