sync patches from upstream to make RestartSec work
This commit is contained in:
parent
39e2db2c06
commit
b8e5fb5c3c
@ -0,0 +1,29 @@
|
|||||||
|
From fe0b82ce77d6a825fdcf29099fe8e2f1bec296ec Mon Sep 17 00:00:00 2001
|
||||||
|
From: licunlong <licunlong1@huawei.com>
|
||||||
|
Date: Fri, 25 Aug 2023 10:32:23 +0800
|
||||||
|
Subject: [PATCH] fix: delete and re-add the restart timer to make timer work
|
||||||
|
again
|
||||||
|
|
||||||
|
---
|
||||||
|
core/coms/service/src/mng.rs | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/core/coms/service/src/mng.rs b/core/coms/service/src/mng.rs
|
||||||
|
index 526b6373..f9051f65 100755
|
||||||
|
--- a/core/coms/service/src/mng.rs
|
||||||
|
+++ b/core/coms/service/src/mng.rs
|
||||||
|
@@ -1904,9 +1904,10 @@ impl RunningData {
|
||||||
|
|
||||||
|
if self.armd_timer() {
|
||||||
|
let timer = self.timer();
|
||||||
|
- events.set_enabled(timer.clone(), EventState::Off)?;
|
||||||
|
+ events.del_source(timer.clone())?;
|
||||||
|
|
||||||
|
timer.set_time(usec);
|
||||||
|
+ events.add_source(timer.clone())?;
|
||||||
|
events.set_enabled(timer, EventState::OneShot)?;
|
||||||
|
return Ok(0);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.30.2
|
||||||
|
|
||||||
@ -11,13 +11,15 @@
|
|||||||
|
|
||||||
Name: sysmaster
|
Name: sysmaster
|
||||||
Version: 0.2.5
|
Version: 0.2.5
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: redesign and reimplement process1.
|
Summary: redesign and reimplement process1.
|
||||||
|
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
URL: https://gitee.com/openeuler/sysmaster
|
URL: https://gitee.com/openeuler/sysmaster
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch6001: backport-fix-delete-and-re-add-the-restart-timer-to-make-time.patch
|
||||||
|
|
||||||
ExclusiveArch: x86_64 aarch64
|
ExclusiveArch: x86_64 aarch64
|
||||||
|
|
||||||
BuildRequires: rust
|
BuildRequires: rust
|
||||||
@ -69,6 +71,9 @@ install -Dm0640 -t %{buildroot}/etc/sysmaster %{conf_install_source}/system.conf
|
|||||||
/etc/sysmaster/system.conf
|
/etc/sysmaster/system.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 25 2023 licunlong<licunlong1@huawei.com> - 0.2.5-2
|
||||||
|
- sync patches from upstream
|
||||||
|
|
||||||
* Sat Aug 5 2023 shenyangyang<shenyangyang4@huawei.com> - 0.2.5-1
|
* Sat Aug 5 2023 shenyangyang<shenyangyang4@huawei.com> - 0.2.5-1
|
||||||
- update for compiling with rust 1.57
|
- update for compiling with rust 1.57
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user