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:
Litao Gao 2020-05-18 03:46:07 -04:00 committed by Babak Sarashki
parent 05a5ae6f34
commit 3d3f9965a9
2 changed files with 31 additions and 0 deletions

View 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 */

View File

@ -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"