pmon: send pulse to hostwd under polling mode
Signed-off-by: Litao Gao <litao.gao@windriver.com> Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
parent
05a5ae6f34
commit
3d3f9965a9
30
meta-stx-flock/stx-metal/files/pmon_send_pulse.patch
Normal file
30
meta-stx-flock/stx-metal/files/pmon_send_pulse.patch
Normal file
@ -0,0 +1,30 @@
|
||||
diff -ruN a/mtce/src/pmon/pmonHdlr.cpp b/mtce/src/pmon/pmonHdlr.cpp
|
||||
--- a/mtce/src/pmon/pmonHdlr.cpp 2020-05-15 14:41:42.271215598 +0000
|
||||
+++ b/mtce/src/pmon/pmonHdlr.cpp 2020-05-18 07:11:16.126154700 +0000
|
||||
@@ -1881,10 +1881,7 @@
|
||||
* we can turn this into a customer alarm/log.
|
||||
* Degrade is acheived by not sending the pulses to the watcher.
|
||||
*/
|
||||
- if ( ctrl_ptr->event_mode == true )
|
||||
- {
|
||||
- pmon_send_pulse ( );
|
||||
- }
|
||||
+ pmon_send_pulse ( );
|
||||
}
|
||||
|
||||
/* Avoid pmond thrashing trying to recover processes during
|
||||
@@ -1930,11 +1927,9 @@
|
||||
{
|
||||
hostwd_port_init();
|
||||
}
|
||||
- if ( ctrl_ptr->event_mode == true )
|
||||
- {
|
||||
- pmon_send_hostwd ( );
|
||||
- pmonTimer_hostwd.ring = false;
|
||||
- }
|
||||
+
|
||||
+ pmon_send_hostwd ( );
|
||||
+ pmonTimer_hostwd.ring = false;
|
||||
}
|
||||
|
||||
/* Run Get Events by audit timer */
|
@ -13,6 +13,7 @@ SRC_URI += " \
|
||||
file://0001-mtce-Use-LDFLAGS-when-linking.patch \
|
||||
file://0002-mtce-Adjust-paths.patch \
|
||||
file://mtce-set-systemctl-path.patch \
|
||||
file://pmon_send_pulse.patch;striplevel=3 \
|
||||
"
|
||||
|
||||
PACKAGES += " ${PN}-pmon"
|
||||
|
Loading…
x
Reference in New Issue
Block a user