mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
watchdog: Do not emit error message if user has no /dev/watchdog
Running Finit on a kernel or system without WDT support built-in should not trigger an error message from Finit. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
72526d9e88
commit
829405f966
1 file changed
+2
-1
+2
-1
@@ -95,7 +95,8 @@ int watchdog(char *progname)
|
||||
|
||||
fd = init(progname, WDT_DEVNODE);
|
||||
if (fd == -1) {
|
||||
_pe("Failed connecting to watchdog %s", WDT_DEVNODE);
|
||||
if (ENOENT != errno)
|
||||
_pe("Failed connecting to watchdog %s", WDT_DEVNODE);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user