Skip to contentSkip to conversation

package/watchdogd: bump to version 4.1

PATCH In review Joachim Wiberg 2 participants 2 messages Dec 15, 2025 – Dec 21, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/watchdogd: bump to version 4.1

Changes:
- Add watchdogctl list-clients command to display currently subscribed clients to the process supervisor. Outputs to stdout in either table format (default) with colored headers, or JSON format with -j/--json
- New global -j, --json option for machine-readable output, currently supported by list-clients and status commands
- New API: wdog_clients() returns array of wdog_client_t structs for programmatic access to subscribed clients. See API documentation at
https://codedocs.xyz/troglobit/watchdogd/wdog_8h.html
- Enhance watchdogctl status command to display formatted output by default, with device information, capabilities, and reset history in a human-readable table format. Use -j/--json for JSON output

Fixes:
- Generic scripts running more than 1 second would fail with false "critical error" reports and cause unwanted system reboots due to uninitialized exit status variable
- watchdogctl reload with tempmon crashes watchdogd
- Issue causing unwanted reboot when watchdogctl reload was called while a generic monitor script was running
- Fix memory leak in generic monitor with optional script path, would be triggered on watchdogctl reload

The first of the fixes means we can now drop the backported patch. Also, the test mode has been dropped from public use, hence it being removed as well in this commit.

---
 Config.in.legacy                              |  6 ++
 ...Fix-use-of-uninitialized-exit-status.patch | 85 -------------------
 package/watchdogd/Config.in                   |  7 --
 package/watchdogd/watchdogd.hash              |  2 +-
 package/watchdogd/watchdogd.mk                | 11 +--
 5 files changed, 9 insertions(+), 102 deletions(-)
 delete mode 100644 package/watchdogd/0001-Fix-use-of-uninitialized-exit-status.patch
Config.in.legacy +6 -0
index da91b68087..69565196cb 100644
@@ -152,6 +152,12 @@ config BR2_PACKAGE_MESA3D_VDPAU
 	help
 	  Mesa3d removed the Gallium VDPAU state tracker.
 
+config BR2_PACKAGE_WATCHDOGD_TEST_SUITE
+	bool "The watchdogd test mode option has been removed."
+	select BR2_LEGACY
+	help
+	  watchdogd v4.1 removes the test mode and test suite.
+
 config BR2_BINUTILS_VERSION_2_42_X
 	bool "binutils 2.42 has been removed"
 	select BR2_LEGACY
package/watchdogd/0001-Fix-use-of-uninitialized-exit-status.patch deleted +0 -85

85 lines not on this page · raw message

package/watchdogd/Config.in +0 -7
index 0aeaad165f..eeff3ad744 100644
@@ -20,13 +20,6 @@ config BR2_PACKAGE_WATCHDOGD
 
 if BR2_PACKAGE_WATCHDOGD
 
-config BR2_PACKAGE_WATCHDOGD_TEST_SUITE
-	bool "Enable watchdogctl test cases"
-	help
-	  The watchdogctl program comes with a suite of tests built-in.
-	  They can be used to verify correct operation of watchdogd and
-	  the kernel watchdog driver.
-
 config BR2_PACKAGE_WATCHDOGD_GENERIC
 	bool "Generic script monitor"
 	default y if BR2_PACKAGE_WATCHDOGD_GENERIC_POLL_WRAP # legacy 2024.02
package/watchdogd/watchdogd.hash +1 -1
index 0c228666bd..1ecc2cb40f 100644
@@ -1,5 +1,5 @@
 # Upstream .sha256 from GitHub
-sha256  7f38bc691353a51fc6feb2ccab60417c0284dd3f4d55c50d8b1781fda70d8101  watchdogd-4.0.tar.gz
+sha256  7ae90acfd8879145be6fb9afe0f388e461230ce76ff9b8f4daeb93250351c314  watchdogd-4.1.tar.gz
 
 # Locally calculated
 sha256  e233c56d807c74c67f2eff47ad03c216144cdd374d8d7578b996c28c260eadda  LICENSE
package/watchdogd/watchdogd.mk +2 -9
index 189efc81d4..e6c756af53 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-WATCHDOGD_VERSION = 4.0
+WATCHDOGD_VERSION = 4.1
 WATCHDOGD_SITE = https://github.com/troglobit/watchdogd/releases/download/$(WATCHDOGD_VERSION)
 WATCHDOGD_LICENSE = ISC
 WATCHDOGD_LICENSE_FILES = LICENSE
@@ -15,14 +15,7 @@ WATCHDOGD_SELINUX_MODULES = watchdog
 
 WATCHDOGD_CONF_OPTS = \
 	--disable-compat \
-	--disable-examples \
-	--disable-test-mode
-
-ifneq ($(BR2_PACKAGE_WATCHDOGD_TEST_SUITE),y)
-WATCHDOGD_CONF_OPTS += --disable-builtin-tests
-else
-WATCHDOGD_CONF_OPTS += --enable-builtin-tests
-endif
+	--disable-examples
 
 ifneq ($(BR2_PACKAGE_WATCHDOGD_GENERIC),y)
 WATCHDOGD_CONF_OPTS += --without-generic
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 23 lines · Joachim Wiberg

Changes:
- Add watchdogctl list-clients command to display currently subscribed clients to the process supervisor. Outputs to stdout in either table format (default) with colored headers, or JSON format with -j/--json
- New global -j, --json option for machine-readable output, currently supported by list-clients and status commands
- New API: wdog_clients() returns array of wdog_client_t structs for programmatic access to subscribed clients. See API documentation at
https://codedocs.xyz/troglobit/watchdogd/wdog_8h.html
- Enhance watchdogctl status command to display formatted output by default, with device information, capabilities, and reset history in a human-readable table format. Use -j/--json for JSON output

Fixes:
- Generic scripts running more than 1 second would fail with false "critical error" reports and cause unwanted system reboots due to uninitialized exit status variable
- watchdogctl reload with tempmon crashes watchdogd
- Issue causing unwanted reboot when watchdogctl reload was called while a generic monitor script was running
- Fix memory leak in generic monitor with optional script path, would be triggered on watchdogctl reload

Quoted 5 lines

The first of the fixes means we can now drop the backported patch. Also, the test mode has been dropped from public use, hence it being removed as well in this commit.

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot